Started GET “/” for 127.0.0.1 at 2022-07-17 01:47:18 -0500

ActiveRecord::ConnectionNotEstablished (could not connect to server: No such file or directory

Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

):

activerecord (7.0.3) lib/active_record/connection_adapters/postgresql_adapter.rb:87:in ‘rescue in new_client’ activerecord (7.0.3) lib/active_record/connection_adapters/postgresql_adapter.rb:77:in ‘new_client’ activerecord (7.0.3) lib/active_record/connection_adapters/postgresql_adapter.rb:37:in ‘postgresql_connection’ activerecord (7.0.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in ‘public_send’ activerecord (7.0.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in ‘new_connection’ activerecord (7.0.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:700:in ‘checkout_new_connection’ activerecord (7.0.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:679:in ‘try_to_checkout_new_connection’ activerecord (7.0.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:640:in ‘acquire_connection’ activerecord (7.0.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:341:in ‘checkout’ activerecord (7.0.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in ‘connection’ activerecord (7.0.3) lib/active_record/connection_adapters/abstract/connection_handler.rb:211:in ‘retrieve_connection’ activerecord (7.0.3) lib/active_record/connection_handling.rb:313:in ‘retrieve_connection’ activerecord (7.0.3) lib/active_record/connection_handling.rb:280:in ‘connection’ activerecord (7.0.3) lib/active_record/migration.rb:613:in ‘connection’ activerecord (7.0.3) lib/active_record/migration.rb:608:in ‘build_watcher’ activerecord (7.0.3) lib/active_record/migration.rb:590:in ‘block in call’ activerecord (7.0.3) lib/active_record/migration.rb:589:in ‘synchronize’ activerecord (7.0.3) lib/active_record/migration.rb:589:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:27:in ‘block in call’ activesupport (7.0.3) lib/active_support/callbacks.rb:99:in ‘run_callbacks’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:26:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/debug_exceptions.rb:28:in ‘call’ web-console (4.2.0) lib/web_console/middleware.rb:132:in ‘call_app’ web-console (4.2.0) lib/web_console/middleware.rb:28:in ‘block in call’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘catch’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/show_exceptions.rb:26:in ‘call’ railties (7.0.3) lib/rails/rack/logger.rb:40:in ‘call_app’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘block in call’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘block in tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:38:in ‘tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘tagged’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘call’ sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/remote_ip.rb:93:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/request_id.rb:26:in ‘call’ rack (2.2.4) lib/rack/method_override.rb:24:in ‘call’ rack (2.2.4) lib/rack/runtime.rb:22:in ‘call’ activesupport (7.0.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/server_timing.rb:20:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/static.rb:23:in ‘call’ rack (2.2.4) lib/rack/sendfile.rb:110:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/host_authorization.rb:137:in ‘call’ railties (7.0.3) lib/rails/engine.rb:530:in ‘call’ puma (5.6.4) lib/puma/configuration.rb:252:in ‘call’ puma (5.6.4) lib/puma/request.rb:77:in ‘block in handle_request’ puma (5.6.4) lib/puma/thread_pool.rb:340:in ‘with_force_shutdown’ puma (5.6.4) lib/puma/request.rb:76:in ‘handle_request’ puma (5.6.4) lib/puma/server.rb:441:in ‘process_client’ puma (5.6.4) lib/puma/thread_pool.rb:147:in ‘block in spawn_thread’ Started GET “/” for 127.0.0.1 at 2022-07-17 01:47:47 -0500

ActiveRecord::SchemaMigration Pluck (32.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Order Load (17.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 335ms (ActiveRecord: 64.6ms | Allocations: 26631)

ActiveRecord::UnknownAttributeReference (Dangerous query method (method whose arguments are used as raw SQL) called with non-attribute argument(s): “name letter”.This method should not be called with user-provided values, such as request parameters or model attributes. Known-safe values can be passed by wrapping them in Arel.sql().):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-17 01:48:27 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 58ms (ActiveRecord: 11.0ms | Allocations: 14003)

ActiveRecord::UnknownAttributeReference (Dangerous query method (method whose arguments are used as raw SQL) called with non-attribute argument(s): “name ?”.This method should not be called with user-provided values, such as request parameters or model attributes. Known-safe values can be passed by wrapping them in Arel.sql().):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-17 01:48:45 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Order Load (3.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (28.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 95.3ms | Allocations: 14748)
Product Exists? (3.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3646.0ms | Allocations: 961530)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 2063)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 1819)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 20.4ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1821)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 1836)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 1819)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 21.2ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1818)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1818)
Tag Load (5.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 27.8ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 4049.4ms | Allocations: 1019665)
Rendered layout layouts/application.html.erb (Duration: 5284.9ms | Allocations: 1158813)

Completed 200 OK in 5391ms (Views: 5227.7ms | ActiveRecord: 74.0ms | Allocations: 1173431)

Started GET “/” for 127.0.0.1 at 2022-07-17 01:50:09 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 24.3ms | Allocations: 12657)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.7ms)  SELECT "products".* FROM "products" ORDER BY name ASC
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 23.7ms | Allocations: 8597)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2007)
Tag Load (3.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1824)
Tag Load (4.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1819)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1818)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1836)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1818)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1789)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 1818)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 29.2ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 271.1ms | Allocations: 62738)
Rendered layout layouts/application.html.erb (Duration: 331.7ms | Allocations: 85434)

Completed 200 OK in 387ms (Views: 302.1ms | ActiveRecord: 39.1ms | Allocations: 99783)

Started GET “/” for 127.0.0.1 at 2022-07-17 01:50:42 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 23.2ms | Allocations: 12660)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products" ORDER BY name DESC
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 23.7ms | Allocations: 8596)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 2007)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1837)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1818)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 206.3ms | Allocations: 62735)
Rendered layout layouts/application.html.erb (Duration: 242.6ms | Allocations: 85417)

Completed 200 OK in 308ms (Views: 219.8ms | ActiveRecord: 31.8ms | Allocations: 99652)

Started GET “/” for 127.0.0.1 at 2022-07-17 01:51:03 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 188ms (ActiveRecord: 19.8ms | Allocations: 14055)

ActiveRecord::UnknownAttributeReference (Dangerous query method (method whose arguments are used as raw SQL) called with non-attribute argument(s): “name ?”.This method should not be called with user-provided values, such as request parameters or model attributes. Known-safe values can be passed by wrapping them in Arel.sql().):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-17 01:53:28 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 70ms (ActiveRecord: 16.1ms | Allocations: 14275)

ActiveRecord::UnknownAttributeReference (Dangerous query method (method whose arguments are used as raw SQL) called with non-attribute argument(s): “name letter”.This method should not be called with user-provided values, such as request parameters or model attributes. Known-safe values can be passed by wrapping them in Arel.sql().):

app/models/product.rb:32:in ‘filter_by_letter’ app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-17 02:10:09 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 89ms (ActiveRecord: 9.7ms | Allocations: 15564)

NameError (uninitialized constant ProductsController::ProductsQuery

ordered_by_name_products = ProductsQuery.new.order_by_letter(params[:letter])
                           ^^^^^^^^^^^^^

Did you mean? ProductsHelper):

app/controllers/products_controller.rb:77:in ‘products_scope’ app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-17 02:12:52 -0500

ActiveRecord::SchemaMigration Pluck (1.9ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 218ms (ActiveRecord: 17.8ms | Allocations: 26396)

NameError (undefined local variable or method ‘order_by_likes_count’ for #<ProductsController:0x0000000000f7d0>

filter_by_name_products = ProductsQuery.new(order_by_likes_count).filter_by_term(params[:term])
                                            ^^^^^^^^^^^^^^^^^^^^

Did you mean? ordered_by_likes_products):

app/controllers/products_controller.rb:79:in ‘products_scope’ app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-17 02:13:11 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 42.4ms | Allocations: 14253)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 436.5ms | Allocations: 286870)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 2063)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1819)
Tag Load (3.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1818)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1836)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1824)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1818)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1818)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 677.1ms | Allocations: 344528)
Rendered layout layouts/application.html.erb (Duration: 815.7ms | Allocations: 400206)

Completed 200 OK in 878ms (Views: 788.1ms | ActiveRecord: 40.0ms | Allocations: 415028)

Started GET “/?term=a&tag=&commit=Sort” for 127.0.0.1 at 2022-07-17 02:13:16 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"a", "tag"=>"", "commit"=>"Sort"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.5ms | Allocations: 8592)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE (products.name LIKE '%a%') LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE (products.name LIKE '%a%')
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1907)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1824)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 79.4ms | Allocations: 25112)
Rendered layout layouts/application.html.erb (Duration: 104.1ms | Allocations: 32766)

Completed 200 OK in 111ms (Views: 102.2ms | ActiveRecord: 3.4ms | Allocations: 34310)

Started GET “/?term=&tag=3&commit=Sort” for 127.0.0.1 at 2022-07-17 02:13:19 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"", "tag"=>"3", "commit"=>"Sort"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.5ms | Allocations: 8570)
Product Exists? (19.3ms)  SELECT 1 AS one FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1  [["id", 3]]
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 2103)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 163.2ms | Allocations: 29251)
Rendered layout layouts/application.html.erb (Duration: 177.4ms | Allocations: 37068)

Completed 200 OK in 184ms (Views: 156.3ms | ActiveRecord: 22.1ms | Allocations: 38486)

Started GET “/?term=&tag=&letter=desc&commit=Sort” for 127.0.0.1 at 2022-07-17 02:13:20 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"", "tag"=>"", "letter"=>"desc", "commit"=>"Sort"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.5ms | Allocations: 8591)
Product Exists? (0.8ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.3ms)  SELECT "products".* FROM "products" ORDER BY name desc
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1896)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1837)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1818)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1818)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 135.4ms | Allocations: 49663)
Rendered layout layouts/application.html.erb (Duration: 149.1ms | Allocations: 57373)

Completed 200 OK in 156ms (Views: 141.9ms | ActiveRecord: 8.8ms | Allocations: 58858)

Started GET “/?term=&tag=3&letter=desc&commit=Sort” for 127.0.0.1 at 2022-07-17 02:13:23 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"", "tag"=>"3", "letter"=>"desc", "commit"=>"Sort"}
Order Load (1.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.8ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.8ms | Allocations: 8570)
Product Exists? (1.5ms)  SELECT 1 AS one FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.9ms)  SELECT "products".* FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 ORDER BY name desc  [["id", 3]]
↳ app/views/products/index.html.erb:8
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1896)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1818)
Tag Load (6.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 67.3ms | Allocations: 19722)
Rendered layout layouts/application.html.erb (Duration: 84.3ms | Allocations: 27374)

Completed 200 OK in 99ms (Views: 77.5ms | ActiveRecord: 13.4ms | Allocations: 28776)

Started GET “/?term=&tag=3&letter=asc&commit=Sort” for 127.0.0.1 at 2022-07-17 02:13:26 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"", "tag"=>"3", "letter"=>"asc", "commit"=>"Sort"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 65.0ms | Allocations: 8567)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 ORDER BY name asc  [["id", 3]]
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.5ms | Allocations: 1895)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 123.5ms | Allocations: 19719)
Rendered layout layouts/application.html.erb (Duration: 197.1ms | Allocations: 27410)

Completed 200 OK in 202ms (Views: 195.1ms | ActiveRecord: 2.7ms | Allocations: 28786)

Started GET “/?term=&tag=5&likes_count=asc&commit=Sort” for 127.0.0.1 at 2022-07-17 02:13:30 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"", "tag"=>"5", "likes_count"=>"asc", "commit"=>"Sort"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.3ms | Allocations: 8567)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 ORDER BY likes_count asc  [["id", 5]]
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1895)
Rendered products/index.html.erb within layouts/application (Duration: 23.8ms | Allocations: 12147)
Rendered layout layouts/application.html.erb (Duration: 50.0ms | Allocations: 19800)

Completed 200 OK in 57ms (Views: 49.0ms | ActiveRecord: 2.0ms | Allocations: 21174)

Started GET “/?term=&tag=3&likes_count=desc&commit=Sort” for 127.0.0.1 at 2022-07-17 02:13:36 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"", "tag"=>"3", "likes_count"=>"desc", "commit"=>"Sort"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.8ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.7ms | Allocations: 8567)
Product Exists? (0.9ms)  SELECT 1 AS one FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.4ms)  SELECT "products".* FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 ORDER BY likes_count desc  [["id", 3]]
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1894)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 48.7ms | Allocations: 19718)
Rendered layout layouts/application.html.erb (Duration: 64.5ms | Allocations: 27426)

Completed 200 OK in 73ms (Views: 61.6ms | ActiveRecord: 4.5ms | Allocations: 28802)

Started GET “/?term=&tag=3&likes_count=desc&commit=Sort” for 127.0.0.1 at 2022-07-17 02:13:39 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"", "tag"=>"3", "likes_count"=>"desc", "commit"=>"Sort"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.5ms | Allocations: 8568)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 ORDER BY likes_count desc  [["id", 3]]
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1894)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 44.3ms | Allocations: 19720)
Rendered layout layouts/application.html.erb (Duration: 57.6ms | Allocations: 27372)

Completed 200 OK in 65ms (Views: 56.0ms | ActiveRecord: 2.8ms | Allocations: 28750)

Started GET “/?term=&tag=3&likes_count=asc&commit=Sort” for 127.0.0.1 at 2022-07-17 02:13:42 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"", "tag"=>"3", "likes_count"=>"asc", "commit"=>"Sort"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.0ms | Allocations: 8567)
Product Exists? (3.2ms)  SELECT 1 AS one FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 ORDER BY likes_count asc  [["id", 3]]
↳ app/views/products/index.html.erb:8
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1895)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 57.8ms | Allocations: 19718)
Rendered layout layouts/application.html.erb (Duration: 73.0ms | Allocations: 27410)

Completed 200 OK in 84ms (Views: 66.7ms | ActiveRecord: 7.8ms | Allocations: 28786)

Started GET “/?term=&tag=3&likes_count=asc&commit=Sort” for 127.0.0.1 at 2022-07-17 02:47:49 -0500

ActiveRecord::SchemaMigration Pluck (2.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
CACHE ActiveRecord::SchemaMigration Pluck (0.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

ActiveRecord::PendingMigrationError (

Migrations are pending. To resolve this issue, run:

bin/rails db:migrate RAILS_ENV=development

You have 1 pending migration:

20220717072459_add_aproved_to_comments.rb

):

activerecord (7.0.3) lib/active_record/migration.rb:627:in ‘check_pending!’ activerecord (7.0.3) lib/active_record/migration.rb:592:in ‘block (2 levels) in call’ activesupport (7.0.3) lib/active_support/file_update_checker.rb:83:in ‘execute’ activerecord (7.0.3) lib/active_record/migration.rb:597:in ‘block in call’ activerecord (7.0.3) lib/active_record/migration.rb:589:in ‘synchronize’ activerecord (7.0.3) lib/active_record/migration.rb:589:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:27:in ‘block in call’ activesupport (7.0.3) lib/active_support/callbacks.rb:99:in ‘run_callbacks’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:26:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/debug_exceptions.rb:28:in ‘call’ web-console (4.2.0) lib/web_console/middleware.rb:132:in ‘call_app’ web-console (4.2.0) lib/web_console/middleware.rb:28:in ‘block in call’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘catch’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/show_exceptions.rb:26:in ‘call’ railties (7.0.3) lib/rails/rack/logger.rb:40:in ‘call_app’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘block in call’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘block in tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:38:in ‘tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘tagged’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘call’ sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/remote_ip.rb:93:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/request_id.rb:26:in ‘call’ rack (2.2.4) lib/rack/method_override.rb:24:in ‘call’ rack (2.2.4) lib/rack/runtime.rb:22:in ‘call’ activesupport (7.0.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/server_timing.rb:20:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/static.rb:23:in ‘call’ rack (2.2.4) lib/rack/sendfile.rb:110:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/host_authorization.rb:137:in ‘call’ railties (7.0.3) lib/rails/engine.rb:530:in ‘call’ puma (5.6.4) lib/puma/configuration.rb:252:in ‘call’ puma (5.6.4) lib/puma/request.rb:77:in ‘block in handle_request’ puma (5.6.4) lib/puma/thread_pool.rb:340:in ‘with_force_shutdown’ puma (5.6.4) lib/puma/request.rb:76:in ‘handle_request’ puma (5.6.4) lib/puma/server.rb:441:in ‘process_client’ puma (5.6.4) lib/puma/thread_pool.rb:147:in ‘block in spawn_thread’

 (0.2ms)  SELECT pg_try_advisory_lock(1042603844265157860)
ActiveRecord::SchemaMigration Pluck (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Migrating to AddAprovedToComments (20220717072459)

TRANSACTION (0.5ms)  BEGIN
 (124.4ms)  ALTER TABLE "comments" ADD "approved" boolean DEFAULT FALSE
ActiveRecord::SchemaMigration Create (0.4ms)  INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"  [["version", "20220717072459"]]
TRANSACTION (63.6ms)  COMMIT
ActiveRecord::InternalMetadata Load (44.8ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
 (0.3ms)  SELECT pg_advisory_unlock(1042603844265157860)
ActiveRecord::SchemaMigration Pluck (0.5ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Started GET “/?term=&tag=3&likes_count=asc&commit=Sort” for 127.0.0.1 at 2022-07-17 02:48:07 -0500

ActiveRecord::SchemaMigration Pluck (3.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Parameters: {"term"=>"", "tag"=>"3", "likes_count"=>"asc", "commit"=>"Sort"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 65.2ms | Allocations: 12022)
Product Exists? (0.8ms)  SELECT 1 AS one FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (7.2ms)  SELECT "products".* FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 ORDER BY likes_count asc  [["id", 3]]
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 742.6ms | Allocations: 285014)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2063)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1824)
Tag Load (3.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 1819)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 949.1ms | Allocations: 311955)
Rendered layout layouts/application.html.erb (Duration: 1219.6ms | Allocations: 367392)

Completed 200 OK in 1491ms (Views: 1205.9ms | ActiveRecord: 44.5ms | Allocations: 395212)

Started GET “/?term=&tag=&commit=Sort” for 127.0.0.1 at 2022-07-17 02:48:11 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"", "tag"=>"", "commit"=>"Sort"}
Order Load (4.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (3.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 13.0ms | Allocations: 8646)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 2016)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1818)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1836)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 137.5ms | Allocations: 49844)
Rendered layout layouts/application.html.erb (Duration: 155.8ms | Allocations: 57609)

Completed 200 OK in 168ms (Views: 146.9ms | ActiveRecord: 14.8ms | Allocations: 59248)

Started GET “/products/14” for 127.0.0.1 at 2022-07-17 02:48:13 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"14"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 14], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1864)
Comment Load (14.8ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 14], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 25.5ms | Allocations: 3514)
Rendered products/show.html.erb within layouts/application (Duration: 52.8ms | Allocations: 7157)
Rendered layout layouts/application.html.erb (Duration: 80.3ms | Allocations: 14958)

Completed 200 OK in 95ms (Views: 65.3ms | ActiveRecord: 17.5ms | Allocations: 17464)

Started GET “/?term=&tag=&commit=Sort” for 127.0.0.1 at 2022-07-17 02:48:13 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"", "tag"=>"", "commit"=>"Sort"}
Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 19.1ms | Allocations: 8616)
Product Exists? (10.8ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1983)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1819)
Tag Load (3.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1819)
Tag Load (4.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1819)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1818)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1862)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1818)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 235.3ms | Allocations: 49796)
Rendered layout layouts/application.html.erb (Duration: 288.0ms | Allocations: 57477)

Completed 200 OK in 302ms (Views: 252.1ms | ActiveRecord: 38.3ms | Allocations: 58933)

Started GET “/products/13” for 127.0.0.1 at 2022-07-17 02:48:14 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"13"}
Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 13], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (3.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 1863)
Comment Load (30.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 13], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (28.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 112.3ms | Allocations: 13580)
Rendered products/show.html.erb within layouts/application (Duration: 127.2ms | Allocations: 15705)
Rendered layout layouts/application.html.erb (Duration: 145.2ms | Allocations: 23521)

Completed 200 OK in 159ms (Views: 75.4ms | ActiveRecord: 71.4ms | Allocations: 25376)

Started GET “/products/13” for 127.0.0.1 at 2022-07-17 02:52:55 -0500

SyntaxError (/home/alvaro/Desktop/ApplaudoStudios/store v.3/app/helpers/comments_helper.rb:10: syntax error, unexpected ‘when’

when 'Order'
^~~~

/home/alvaro/Desktop/ApplaudoStudios/store v.3/app/helpers/comments_helper.rb:13: syntax error, unexpected ‘end’

end
^~~

/home/alvaro/Desktop/ApplaudoStudios/store v.3/app/helpers/comments_helper.rb:24: syntax error, unexpected end-of-input, expecting ‘end’):

app/helpers/comments_helper.rb:10: syntax error, unexpected ‘when’ app/helpers/comments_helper.rb:13: syntax error, unexpected ‘end’ app/helpers/comments_helper.rb:24: syntax error, unexpected end-of-input, expecting ‘end’ app/helpers/comments_helper.rb:10: syntax error, unexpected ‘when’ app/helpers/comments_helper.rb:13: syntax error, unexpected ‘end’ app/helpers/comments_helper.rb:24: syntax error, unexpected end-of-input, expecting ‘end’ app/helpers/comments_helper.rb:10: syntax error, unexpected ‘when’ app/helpers/comments_helper.rb:13: syntax error, unexpected ‘end’ app/helpers/comments_helper.rb:24: syntax error, unexpected end-of-input, expecting ‘end’ app/controllers/application_controller.rb:5:in ‘<main>’ app/controllers/products_controller.rb:4:in ‘<main>’ Started GET “/products/13” for 127.0.0.1 at 2022-07-17 02:54:07 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#show as HTML

Parameters: {"id"=>"13"}
Order Load (6.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 13], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 55.7ms | Allocations: 12355)
Comment Load (1.0ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 13], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (2.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 136.4ms | Allocations: 15408)
Rendered products/show.html.erb within layouts/application (Duration: 205.1ms | Allocations: 29433)
Rendered layout layouts/application.html.erb (Duration: 207.7ms | Allocations: 29527)

Completed 500 Internal Server Error in 326ms (ActiveRecord: 49.6ms | Allocations: 47157)

ActionView::Template::Error (undefined method ‘product_comment_path’ for #<ActionView::Base:0x0000000001f5b8>

link_to 'Approve', product_comment_path(commentable, comment),
                   ^^^^^^^^^^^^^^^^^^^^

Did you mean? product_comments_path

           product_comments_url):
 7:       <p>Created <%= distance_of_time_in_words(Time.now, comment.created_at, include_seconds: true) %> ago</p>
 8: 
 9:       <% if !comment.approved? %>
10:         <%= comment_approve_link(commentable, comment) %>
11:       <% end %>
12: 
13:       <%= comment_delete_link(commentable, comment) %>

app/helpers/comments_helper.rb:8:in ‘comment_approve_link’ app/views/comments/_comments.html.erb:10 app/views/comments/_comments.html.erb:2 app/views/products/show.html.erb:8 Started GET “/products/13” for 127.0.0.1 at 2022-07-17 02:56:15 -0500

ActiveRecord::SchemaMigration Pluck (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#show as HTML

Parameters: {"id"=>"13"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.8ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 13], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 544.2ms | Allocations: 289883)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 13], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 69.9ms | Allocations: 17235)
Rendered products/show.html.erb within layouts/application (Duration: 624.2ms | Allocations: 309092)
Rendered layout layouts/application.html.erb (Duration: 767.8ms | Allocations: 364451)

Completed 200 OK in 901ms (Views: 759.9ms | ActiveRecord: 30.5ms | Allocations: 393140)

Started GET “/products/13” for 127.0.0.1 at 2022-07-17 02:57:11 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#show as HTML

Parameters: {"id"=>"13"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 13], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 52.6ms | Allocations: 11771)
Comment Load (1.7ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 13], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 50.6ms | Allocations: 11186)
Rendered products/show.html.erb within layouts/application (Duration: 114.3ms | Allocations: 24281)
Rendered layout layouts/application.html.erb (Duration: 166.6ms | Allocations: 46905)

Completed 200 OK in 239ms (Views: 152.8ms | ActiveRecord: 31.5ms | Allocations: 64188)

Started GET “/products/13” for 127.0.0.1 at 2022-07-17 02:58:41 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#show as HTML

Parameters: {"id"=>"13"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 13], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 32.7ms | Allocations: 11790)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 13], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (5.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 44.8ms | Allocations: 11221)
Rendered products/show.html.erb within layouts/application (Duration: 82.0ms | Allocations: 24338)
Rendered layout layouts/application.html.erb (Duration: 116.6ms | Allocations: 47122)

Completed 200 OK in 187ms (Views: 93.8ms | ActiveRecord: 41.8ms | Allocations: 64466)

Started GET “/products/13” for 127.0.0.1 at 2022-07-17 03:00:38 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#show as HTML

Parameters: {"id"=>"13"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 13], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 115.1ms | Allocations: 12365)
Comment Load (0.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 13], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (2.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 45.2ms | Allocations: 11416)
Rendered products/show.html.erb within layouts/application (Duration: 166.6ms | Allocations: 25504)
Rendered layout layouts/application.html.erb (Duration: 212.4ms | Allocations: 48831)

Completed 200 OK in 365ms (Views: 196.7ms | ActiveRecord: 38.4ms | Allocations: 66425)

Started GET “/products/13” for 127.0.0.1 at 2022-07-17 03:00:45 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"13"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 13], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.0ms | Allocations: 2828)
Comment Load (0.6ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 13], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 12.2ms | Allocations: 2809)
Rendered products/show.html.erb within layouts/application (Duration: 30.7ms | Allocations: 6212)
Rendered layout layouts/application.html.erb (Duration: 57.7ms | Allocations: 14619)

Completed 200 OK in 70ms (Views: 58.6ms | ActiveRecord: 2.9ms | Allocations: 17102)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:00:47 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 3.8ms | Allocations: 728)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 41.5ms | Allocations: 3935)
Rendered layout layouts/application.html.erb (Duration: 58.7ms | Allocations: 11854)

Completed 200 OK in 67ms (Views: 62.6ms | ActiveRecord: 0.0ms | Allocations: 13972)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:00:56 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"alvaro@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 268ms (ActiveRecord: 0.5ms | Allocations: 5165)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:00:56 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 18.3ms | Allocations: 10374)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 2537)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1493)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1511)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1495)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 175.1ms | Allocations: 46372)
Rendered layout layouts/application.html.erb (Duration: 190.4ms | Allocations: 54216)

Completed 200 OK in 203ms (Views: 181.7ms | ActiveRecord: 14.5ms | Allocations: 56077)

Started GET “/products/14” for 127.0.0.1 at 2022-07-17 03:00:58 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"14"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 14], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 2299)
Comment Load (1.0ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 14], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 3.9ms | Allocations: 761)
Rendered products/show.html.erb within layouts/application (Duration: 19.9ms | Allocations: 3272)
Rendered layout layouts/application.html.erb (Duration: 45.3ms | Allocations: 10939)

Completed 200 OK in 69ms (Views: 49.7ms | ActiveRecord: 4.2ms | Allocations: 12887)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:00:59 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 44.7ms | Allocations: 8585)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2333)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1511)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (4.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1520)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1494)
Tag Load (6.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 224.8ms | Allocations: 43632)
Rendered layout layouts/application.html.erb (Duration: 241.2ms | Allocations: 51353)

Completed 200 OK in 252ms (Views: 221.1ms | ActiveRecord: 22.9ms | Allocations: 52706)

Started GET “/products/13” for 127.0.0.1 at 2022-07-17 03:01:00 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"13"}
Order Load (2.9ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (2.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 13], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 22.9ms | Allocations: 2298)
Comment Load (2.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 13], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (1.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 34.5ms | Allocations: 2594)
Rendered products/show.html.erb within layouts/application (Duration: 60.2ms | Allocations: 5095)
Rendered layout layouts/application.html.erb (Duration: 85.9ms | Allocations: 12760)

Completed 200 OK in 109ms (Views: 79.9ms | ActiveRecord: 12.5ms | Allocations: 14614)

Started GET “/products/13” for 127.0.0.1 at 2022-07-17 03:01:20 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#show as HTML

Parameters: {"id"=>"13"}
Order Load (2.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 13], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 59.8ms | Allocations: 15493)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 13], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (3.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 30.7ms | Allocations: 8152)
Rendered products/show.html.erb within layouts/application (Duration: 94.2ms | Allocations: 24992)
Rendered layout layouts/application.html.erb (Duration: 153.9ms | Allocations: 47775)

Completed 200 OK in 247ms (Views: 134.2ms | ActiveRecord: 43.4ms | Allocations: 65127)

Started GET “/products/13/comments/3” for 127.0.0.1 at 2022-07-17 03:01:42 -0500

AbstractController::ActionNotFound (The action ‘show’ could not be found for CommentsController):

actionpack (7.0.3) lib/abstract_controller/base.rb:146:in ‘process’ actionview (7.0.3) lib/action_view/rendering.rb:39:in ‘process’ actionpack (7.0.3) lib/action_controller/metal.rb:188:in ‘dispatch’ actionpack (7.0.3) lib/action_controller/metal.rb:251:in ‘dispatch’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:49:in ‘dispatch’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:32:in ‘serve’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:50:in ‘block in serve’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:32:in ‘each’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:32:in ‘serve’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:852:in ‘call’ warden (1.2.9) lib/warden/manager.rb:36:in ‘block in call’ warden (1.2.9) lib/warden/manager.rb:34:in ‘catch’ warden (1.2.9) lib/warden/manager.rb:34:in ‘call’ rack (2.2.4) lib/rack/tempfile_reaper.rb:15:in ‘call’ rack (2.2.4) lib/rack/etag.rb:27:in ‘call’ rack (2.2.4) lib/rack/conditional_get.rb:27:in ‘call’ rack (2.2.4) lib/rack/head.rb:12:in ‘call’ actionpack (7.0.3) lib/action_dispatch/http/permissions_policy.rb:38:in ‘call’ actionpack (7.0.3) lib/action_dispatch/http/content_security_policy.rb:36:in ‘call’ rack (2.2.4) lib/rack/session/abstract/id.rb:266:in ‘context’ rack (2.2.4) lib/rack/session/abstract/id.rb:260:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/cookies.rb:697:in ‘call’ activerecord (7.0.3) lib/active_record/migration.rb:603:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:27:in ‘block in call’ activesupport (7.0.3) lib/active_support/callbacks.rb:99:in ‘run_callbacks’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:26:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/debug_exceptions.rb:28:in ‘call’ web-console (4.2.0) lib/web_console/middleware.rb:132:in ‘call_app’ web-console (4.2.0) lib/web_console/middleware.rb:28:in ‘block in call’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘catch’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/show_exceptions.rb:26:in ‘call’ railties (7.0.3) lib/rails/rack/logger.rb:40:in ‘call_app’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘block in call’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘block in tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:38:in ‘tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘tagged’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘call’ sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/remote_ip.rb:93:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/request_id.rb:26:in ‘call’ rack (2.2.4) lib/rack/method_override.rb:24:in ‘call’ rack (2.2.4) lib/rack/runtime.rb:22:in ‘call’ activesupport (7.0.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/server_timing.rb:20:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/static.rb:23:in ‘call’ rack (2.2.4) lib/rack/sendfile.rb:110:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/host_authorization.rb:137:in ‘call’ railties (7.0.3) lib/rails/engine.rb:530:in ‘call’ puma (5.6.4) lib/puma/configuration.rb:252:in ‘call’ puma (5.6.4) lib/puma/request.rb:77:in ‘block in handle_request’ puma (5.6.4) lib/puma/thread_pool.rb:340:in ‘with_force_shutdown’ puma (5.6.4) lib/puma/request.rb:76:in ‘handle_request’ puma (5.6.4) lib/puma/server.rb:441:in ‘process_client’ puma (5.6.4) lib/puma/thread_pool.rb:147:in ‘block in spawn_thread’ Started GET “/products/13” for 127.0.0.1 at 2022-07-17 03:01:45 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"13"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (2.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 13], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2428)
Comment Load (0.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 13], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (4.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 17.3ms | Allocations: 2700)
Rendered products/show.html.erb within layouts/application (Duration: 25.5ms | Allocations: 5316)
Rendered layout layouts/application.html.erb (Duration: 47.3ms | Allocations: 13141)

Completed 200 OK in 69ms (Views: 43.9ms | ActiveRecord: 8.4ms | Allocations: 15218)

Started GET “/products/13” for 127.0.0.1 at 2022-07-17 03:02:09 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"13"}
Order Load (0.9ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 13], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2298)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 13], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 15.5ms | Allocations: 2658)
Rendered products/show.html.erb within layouts/application (Duration: 28.2ms | Allocations: 5141)
Rendered layout layouts/application.html.erb (Duration: 46.3ms | Allocations: 12806)

Completed 200 OK in 56ms (Views: 46.1ms | ActiveRecord: 2.6ms | Allocations: 14626)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:02:11 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.1ms | Allocations: 9557)
Product Exists? (4.1ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
User Load (3.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 2493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1494)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1511)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (3.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 179.6ms | Allocations: 44912)
Rendered layout layouts/application.html.erb (Duration: 198.0ms | Allocations: 52688)

Completed 200 OK in 233ms (Views: 178.7ms | ActiveRecord: 20.7ms | Allocations: 60080)

ActiveRecord::SchemaMigration Pluck (0.5ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
ActiveRecord::InternalMetadata Pluck (0.4ms)  SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
ActiveRecord::SchemaMigration Pluck (0.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
ActiveRecord::InternalMetadata Pluck (0.3ms)  SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
ActiveRecord::SchemaMigration Pluck (0.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
ActiveRecord::InternalMetadata Pluck (0.4ms)  SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
 (80.3ms)  DROP DATABASE IF EXISTS "store_development"
 (37.9ms)  DROP DATABASE IF EXISTS "store_test"
 (660.1ms)  CREATE DATABASE "store_development" ENCODING = 'unicode'
 (155.4ms)  CREATE DATABASE "store_test" ENCODING = 'unicode'
SQL (0.3ms)  CREATE EXTENSION IF NOT EXISTS "plpgsql"
 (0.2ms)  DROP TABLE IF EXISTS "comments" CASCADE
 (15.5ms)  CREATE TABLE "comments" ("id" bigserial primary key, "body" text, "rate" integer DEFAULT 0, "user_id" bigint NOT NULL, "commentable_type" character varying NOT NULL, "commentable_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "approved" boolean DEFAULT FALSE)
 (4.0ms)  CREATE INDEX "index_comments_on_commentable" ON "comments" ("commentable_type", "commentable_id")
 (3.6ms)  CREATE INDEX "index_comments_on_user_id" ON "comments" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "likes" CASCADE
 (4.4ms)  CREATE TABLE "likes" ("id" bigserial primary key, "user_id" bigint NOT NULL, "product_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (3.9ms)  CREATE INDEX "index_likes_on_product_id" ON "likes" ("product_id")
 (2.9ms)  CREATE UNIQUE INDEX "index_likes_on_user_id_and_product_id" ON "likes" ("user_id", "product_id")
 (2.6ms)  CREATE INDEX "index_likes_on_user_id" ON "likes" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "logs" CASCADE
 (5.7ms)  CREATE TABLE "logs" ("id" bigserial primary key, "loggable_type" character varying, "loggable_id" bigint, "attr" character varying, "old_val" character varying, "new_val" character varying, "user_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.8ms)  CREATE INDEX "index_logs_on_loggable" ON "logs" ("loggable_type", "loggable_id")
 (3.0ms)  CREATE INDEX "index_logs_on_user_id" ON "logs" ("user_id")
 (0.3ms)  DROP TABLE IF EXISTS "order_lines" CASCADE
 (5.6ms)  CREATE TABLE "order_lines" ("id" bigserial primary key, "order_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" integer, "total" decimal(5,2), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.8ms)  CREATE INDEX "index_order_lines_on_order_id" ON "order_lines" ("order_id")
 (3.0ms)  CREATE INDEX "index_order_lines_on_product_id" ON "order_lines" ("product_id")
 (0.4ms)  DROP TABLE IF EXISTS "orders" CASCADE
 (4.2ms)  CREATE TABLE "orders" ("id" bigserial primary key, "date" date, "user_id" bigint, "total" decimal(6,2), "status" integer DEFAULT 0, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (3.6ms)  CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "products" CASCADE
 (7.0ms)  CREATE TABLE "products" ("id" bigserial primary key, "name" character varying, "description" character varying, "price" decimal(5,2), "stock" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "likes_count" integer DEFAULT 0)
 (0.2ms)  DROP TABLE IF EXISTS "products_tags" CASCADE
 (1.3ms)  CREATE TABLE "products_tags" ("product_id" bigint NOT NULL, "tag_id" bigint NOT NULL)
 (2.9ms)  CREATE INDEX "index_products_tags_on_product_id" ON "products_tags" ("product_id")
 (3.5ms)  CREATE INDEX "index_products_tags_on_tag_id" ON "products_tags" ("tag_id")
 (0.3ms)  DROP TABLE IF EXISTS "tags" CASCADE
 (6.0ms)  CREATE TABLE "tags" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (0.2ms)  DROP TABLE IF EXISTS "users" CASCADE
 (18.9ms)  CREATE TABLE "users" ("id" bigserial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp(6), "remember_created_at" timestamp(6), "first_name" character varying, "last_name" character varying, "address" character varying, "phone" character varying, "role" integer DEFAULT 0, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.8ms)  CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
 (2.9ms)  CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
 (2.4ms)  ALTER TABLE "comments" ADD CONSTRAINT "fk_rails_03de2dc08c"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (2.4ms)  ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_f7ed05ee50"

FOREIGN KEY (“product_id”)

REFERENCES "products" ("id")



 (1.7ms)  ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_1e09b5dabf"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (1.8ms)  ALTER TABLE "logs" ADD CONSTRAINT "fk_rails_8fc980bf44"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (2.1ms)  ALTER TABLE "order_lines" ADD CONSTRAINT "fk_rails_e6c763ee60"

FOREIGN KEY (“order_id”)

REFERENCES "orders" ("id")



 (1.6ms)  ALTER TABLE "order_lines" ADD CONSTRAINT "fk_rails_83e960fa54"

FOREIGN KEY (“product_id”)

REFERENCES "products" ("id")



 (1.7ms)  ALTER TABLE "orders" ADD CONSTRAINT "fk_rails_f868b47f6a"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (18.1ms)  CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
ActiveRecord::SchemaMigration Pluck (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (4.2ms)  INSERT INTO "schema_migrations" (version) VALUES (20220717072459)
 (0.9ms)  INSERT INTO "schema_migrations" (version) VALUES

(20220702233559), (20220702235959), (20220703000346), (20220703000538), (20220703002134), (20220703002541), (20220704010436), (20220704194659), (20220710000751), (20220710000931), (20220710003850), (20220710005152), (20220710005930), (20220710025851);



 (4.8ms)  CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
ActiveRecord::InternalMetadata Load (0.3ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
ActiveRecord::InternalMetadata Create (0.4ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"  [["key", "environment"], ["value", "development"], ["created_at", "2022-07-17 08:02:32.126587"], ["updated_at", "2022-07-17 08:02:32.126587"]]
TRANSACTION (1.0ms)  COMMIT
ActiveRecord::InternalMetadata Load (0.3ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
ActiveRecord::InternalMetadata Load (0.2ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "schema_sha1"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
ActiveRecord::InternalMetadata Create (0.3ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"  [["key", "schema_sha1"], ["value", "a79896619f224c75aaa3902e58c816f0f0e74f8b"], ["created_at", "2022-07-17 08:02:32.138528"], ["updated_at", "2022-07-17 08:02:32.138528"]]
TRANSACTION (15.5ms)  COMMIT
SQL (0.3ms)  CREATE EXTENSION IF NOT EXISTS "plpgsql"
 (0.3ms)  DROP TABLE IF EXISTS "comments" CASCADE
 (17.5ms)  CREATE TABLE "comments" ("id" bigserial primary key, "body" text, "rate" integer DEFAULT 0, "user_id" bigint NOT NULL, "commentable_type" character varying NOT NULL, "commentable_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "approved" boolean DEFAULT FALSE)
 (3.6ms)  CREATE INDEX "index_comments_on_commentable" ON "comments" ("commentable_type", "commentable_id")
 (3.7ms)  CREATE INDEX "index_comments_on_user_id" ON "comments" ("user_id")
 (0.3ms)  DROP TABLE IF EXISTS "likes" CASCADE
 (4.2ms)  CREATE TABLE "likes" ("id" bigserial primary key, "user_id" bigint NOT NULL, "product_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.8ms)  CREATE INDEX "index_likes_on_product_id" ON "likes" ("product_id")
 (2.7ms)  CREATE UNIQUE INDEX "index_likes_on_user_id_and_product_id" ON "likes" ("user_id", "product_id")
 (18.3ms)  CREATE INDEX "index_likes_on_user_id" ON "likes" ("user_id")
 (0.3ms)  DROP TABLE IF EXISTS "logs" CASCADE
 (7.3ms)  CREATE TABLE "logs" ("id" bigserial primary key, "loggable_type" character varying, "loggable_id" bigint, "attr" character varying, "old_val" character varying, "new_val" character varying, "user_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (3.2ms)  CREATE INDEX "index_logs_on_loggable" ON "logs" ("loggable_type", "loggable_id")
 (12.1ms)  CREATE INDEX "index_logs_on_user_id" ON "logs" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "order_lines" CASCADE
 (4.5ms)  CREATE TABLE "order_lines" ("id" bigserial primary key, "order_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" integer, "total" decimal(5,2), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.7ms)  CREATE INDEX "index_order_lines_on_order_id" ON "order_lines" ("order_id")
 (2.6ms)  CREATE INDEX "index_order_lines_on_product_id" ON "order_lines" ("product_id")
 (0.2ms)  DROP TABLE IF EXISTS "orders" CASCADE
 (17.0ms)  CREATE TABLE "orders" ("id" bigserial primary key, "date" date, "user_id" bigint, "total" decimal(6,2), "status" integer DEFAULT 0, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.9ms)  CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
 (0.3ms)  DROP TABLE IF EXISTS "products" CASCADE
 (10.0ms)  CREATE TABLE "products" ("id" bigserial primary key, "name" character varying, "description" character varying, "price" decimal(5,2), "stock" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "likes_count" integer DEFAULT 0)
 (0.3ms)  DROP TABLE IF EXISTS "products_tags" CASCADE
 (1.3ms)  CREATE TABLE "products_tags" ("product_id" bigint NOT NULL, "tag_id" bigint NOT NULL)
 (3.1ms)  CREATE INDEX "index_products_tags_on_product_id" ON "products_tags" ("product_id")
 (2.5ms)  CREATE INDEX "index_products_tags_on_tag_id" ON "products_tags" ("tag_id")
 (0.3ms)  DROP TABLE IF EXISTS "tags" CASCADE
 (5.4ms)  CREATE TABLE "tags" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (0.2ms)  DROP TABLE IF EXISTS "users" CASCADE
 (11.1ms)  CREATE TABLE "users" ("id" bigserial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp(6), "remember_created_at" timestamp(6), "first_name" character varying, "last_name" character varying, "address" character varying, "phone" character varying, "role" integer DEFAULT 0, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (3.3ms)  CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
 (2.4ms)  CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
 (2.3ms)  ALTER TABLE "comments" ADD CONSTRAINT "fk_rails_03de2dc08c"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (2.1ms)  ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_f7ed05ee50"

FOREIGN KEY (“product_id”)

REFERENCES "products" ("id")



 (2.9ms)  ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_1e09b5dabf"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (2.4ms)  ALTER TABLE "logs" ADD CONSTRAINT "fk_rails_8fc980bf44"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (1.9ms)  ALTER TABLE "order_lines" ADD CONSTRAINT "fk_rails_e6c763ee60"

FOREIGN KEY (“order_id”)

REFERENCES "orders" ("id")



 (2.7ms)  ALTER TABLE "order_lines" ADD CONSTRAINT "fk_rails_83e960fa54"

FOREIGN KEY (“product_id”)

REFERENCES "products" ("id")



 (2.0ms)  ALTER TABLE "orders" ADD CONSTRAINT "fk_rails_f868b47f6a"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (5.8ms)  CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
ActiveRecord::SchemaMigration Pluck (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (1.2ms)  INSERT INTO "schema_migrations" (version) VALUES (20220717072459)
 (1.5ms)  INSERT INTO "schema_migrations" (version) VALUES

(20220702233559), (20220702235959), (20220703000346), (20220703000538), (20220703002134), (20220703002541), (20220704010436), (20220704194659), (20220710000751), (20220710000931), (20220710003850), (20220710005152), (20220710005930), (20220710025851);



 (5.6ms)  CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
ActiveRecord::InternalMetadata Load (0.4ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
ActiveRecord::InternalMetadata Create (0.5ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"  [["key", "environment"], ["value", "development"], ["created_at", "2022-07-17 08:02:32.427241"], ["updated_at", "2022-07-17 08:02:32.427241"]]
TRANSACTION (1.1ms)  COMMIT
ActiveRecord::InternalMetadata Load (0.3ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
ActiveRecord::InternalMetadata Update (0.4ms)  UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3  [["value", "test"], ["updated_at", "2022-07-17 08:02:32.436842"], ["key", "environment"]]
TRANSACTION (1.0ms)  COMMIT
ActiveRecord::InternalMetadata Load (0.3ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "schema_sha1"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
ActiveRecord::InternalMetadata Create (0.4ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"  [["key", "schema_sha1"], ["value", "a79896619f224c75aaa3902e58c816f0f0e74f8b"], ["created_at", "2022-07-17 08:02:32.445630"], ["updated_at", "2022-07-17 08:02:32.445630"]]
TRANSACTION (37.0ms)  COMMIT
ActiveRecord::SchemaMigration Pluck (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
TRANSACTION (0.3ms)  BEGIN
User Exists? (0.9ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]
User Create (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "alvaro@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Alvaro"], ["last_name", "Torres"], ["address", "7566 Marlene Corner"], ["phone", "696299192"], ["role", 1], ["created_at", "2022-07-17 08:02:33.053979"], ["updated_at", "2022-07-17 08:02:33.053979"]]
TRANSACTION (67.5ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Exists? (0.6ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "support@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "support@mail.com"], ["LIMIT", 1]]
User Create (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "support@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Phil"], ["last_name", "Berge"], ["address", "12679 Moore Divide"], ["phone", "287895864"], ["role", 2], ["created_at", "2022-07-17 08:02:33.369863"], ["updated_at", "2022-07-17 08:02:33.369863"]]
TRANSACTION (1.3ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Exists? (0.3ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]
User Create (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test1@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Ernest"], ["last_name", "Koch"], ["address", "30519 Fritsch Meadows"], ["phone", "480909118"], ["role", 0], ["created_at", "2022-07-17 08:02:33.594820"], ["updated_at", "2022-07-17 08:02:33.594820"]]
TRANSACTION (1.5ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
User Exists? (0.4ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test2@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test2@mail.com"], ["LIMIT", 1]]
User Create (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test2@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Nobuko"], ["last_name", "O'Reilly"], ["address", "6644 Graig Flats"], ["phone", "614332330"], ["role", 0], ["created_at", "2022-07-17 08:02:33.820918"], ["updated_at", "2022-07-17 08:02:33.820918"]]
TRANSACTION (84.3ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
User Exists? (0.4ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test3@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test3@mail.com"], ["LIMIT", 1]]
User Create (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test3@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Lamar"], ["last_name", "Predovic"], ["address", "25703 Adan Ways"], ["phone", "256387125"], ["role", 0], ["created_at", "2022-07-17 08:02:34.124881"], ["updated_at", "2022-07-17 08:02:34.124881"]]
TRANSACTION (1.6ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Exists? (0.4ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test4@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test4@mail.com"], ["LIMIT", 1]]
User Create (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test4@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Kai"], ["last_name", "Pouros"], ["address", "286 Hane Shoals"], ["phone", "413626834"], ["role", 0], ["created_at", "2022-07-17 08:02:34.361027"], ["updated_at", "2022-07-17 08:02:34.361027"]]
TRANSACTION (1.1ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
User Exists? (0.4ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test5@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test5@mail.com"], ["LIMIT", 1]]
User Create (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test5@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Annice"], ["last_name", "Romaguera"], ["address", "37414 Isaiah Trace"], ["phone", "061459104"], ["role", 0], ["created_at", "2022-07-17 08:02:34.580996"], ["updated_at", "2022-07-17 08:02:34.580996"]]
TRANSACTION (1.1ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.5ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "chips"], ["created_at", "2022-07-17 08:02:34.606653"], ["updated_at", "2022-07-17 08:02:34.606653"]]
TRANSACTION (12.0ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.5ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "soda"], ["created_at", "2022-07-17 08:02:34.630306"], ["updated_at", "2022-07-17 08:02:34.630306"]]
TRANSACTION (9.2ms)  COMMIT
TRANSACTION (0.4ms)  BEGIN
Tag Create (0.4ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "beer"], ["created_at", "2022-07-17 08:02:34.646859"], ["updated_at", "2022-07-17 08:02:34.646859"]]
TRANSACTION (10.8ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.3ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "cookies"], ["created_at", "2022-07-17 08:02:34.667644"], ["updated_at", "2022-07-17 08:02:34.667644"]]
TRANSACTION (6.5ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.3ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "chocolates"], ["created_at", "2022-07-17 08:02:34.680138"], ["updated_at", "2022-07-17 08:02:34.680138"]]
TRANSACTION (10.2ms)  COMMIT
TRANSACTION (0.5ms)  BEGIN
Tag Create (0.6ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "snack"], ["created_at", "2022-07-17 08:02:34.697182"], ["updated_at", "2022-07-17 08:02:34.697182"]]
TRANSACTION (10.4ms)  COMMIT
TRANSACTION (0.4ms)  BEGIN
Tag Create (0.3ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "beverage"], ["created_at", "2022-07-17 08:02:34.715164"], ["updated_at", "2022-07-17 08:02:34.715164"]]
TRANSACTION (8.4ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "doritos"], ["LIMIT", 1]]
Product Create (0.5ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "doritos"], ["description", "Flavored tortilla chips"], ["price", "7.0"], ["stock", 50], ["created_at", "2022-07-17 08:02:34.754155"], ["updated_at", "2022-07-17 08:02:34.754155"], ["likes_count", 0]]
TRANSACTION (11.6ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.3ms)  BEGIN
Product::HABTM_Tags Create (0.6ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 1], ["tag_id", 1]]
TRANSACTION (20.4ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (1.1ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 1], ["tag_id", 6]]
TRANSACTION (12.9ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "pringles"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "pringles"], ["description", "Stackable potato-based crisps"], ["price", "22.0"], ["stock", 25], ["created_at", "2022-07-17 08:02:34.841580"], ["updated_at", "2022-07-17 08:02:34.841580"], ["likes_count", 0]]
TRANSACTION (26.0ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 2], ["tag_id", 1]]
TRANSACTION (8.1ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 2], ["tag_id", 6]]
TRANSACTION (8.9ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "lay's"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "lay's"], ["description", "Potato chips"], ["price", "4.0"], ["stock", 70], ["created_at", "2022-07-17 08:02:34.909883"], ["updated_at", "2022-07-17 08:02:34.909883"], ["likes_count", 0]]
TRANSACTION (7.8ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (3.1ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 3], ["tag_id", 1]]
TRANSACTION (4.3ms)  COMMIT
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 3], ["tag_id", 6]]
TRANSACTION (9.1ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "takis"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "takis"], ["description", "Rolled, corn tortilla chip"], ["price", "12.0"], ["stock", 30], ["created_at", "2022-07-17 08:02:34.961000"], ["updated_at", "2022-07-17 08:02:34.961000"], ["likes_count", 0]]
TRANSACTION (6.0ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 4], ["tag_id", 1]]
TRANSACTION (5.0ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 4], ["tag_id", 6]]
TRANSACTION (6.7ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "ruffles"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "ruffles"], ["description", "Ruffled (crinkle-cut) potato chips"], ["price", "18.0"], ["stock", 60], ["created_at", "2022-07-17 08:02:35.012343"], ["updated_at", "2022-07-17 08:02:35.012343"], ["likes_count", 0]]
TRANSACTION (1.2ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 5], ["tag_id", 1]]
TRANSACTION (24.5ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 5], ["tag_id", 6]]
TRANSACTION (7.5ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "coca cola"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "coca cola"], ["description", "Carbonated soft drink"], ["price", "8.0"], ["stock", 50], ["created_at", "2022-07-17 08:02:35.104312"], ["updated_at", "2022-07-17 08:02:35.104312"], ["likes_count", 0]]
TRANSACTION (4.3ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 6], ["tag_id", 2]]
TRANSACTION (4.9ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 6], ["tag_id", 7]]
TRANSACTION (5.4ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "pepsi"], ["LIMIT", 1]]
Product Create (0.6ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "pepsi"], ["description", "Carbonated soft drink"], ["price", "7.5"], ["stock", 25], ["created_at", "2022-07-17 08:02:35.154622"], ["updated_at", "2022-07-17 08:02:35.154622"], ["likes_count", 0]]
TRANSACTION (10.2ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 7], ["tag_id", 2]]
TRANSACTION (22.4ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 7], ["tag_id", 7]]
TRANSACTION (5.9ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "dr pepper"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "dr pepper"], ["description", "Carbonated soft drink"], ["price", "6.5"], ["stock", 70], ["created_at", "2022-07-17 08:02:35.227983"], ["updated_at", "2022-07-17 08:02:35.227983"], ["likes_count", 0]]
TRANSACTION (5.7ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 8], ["tag_id", 2]]
TRANSACTION (5.9ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 8], ["tag_id", 7]]
TRANSACTION (6.3ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "mountain dew"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "mountain dew"], ["description", "Carbonated soft drink"], ["price", "9.5"], ["stock", 30], ["created_at", "2022-07-17 08:02:35.278746"], ["updated_at", "2022-07-17 08:02:35.278746"], ["likes_count", 0]]
TRANSACTION (5.0ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 9], ["tag_id", 2]]
TRANSACTION (6.0ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 9], ["tag_id", 7]]
TRANSACTION (6.4ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "sprite"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "sprite"], ["description", "Carbonated soft drink"], ["price", "5.5"], ["stock", 60], ["created_at", "2022-07-17 08:02:35.327981"], ["updated_at", "2022-07-17 08:02:35.327981"], ["likes_count", 0]]
TRANSACTION (5.7ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 10], ["tag_id", 2]]
TRANSACTION (6.0ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 10], ["tag_id", 7]]
TRANSACTION (6.2ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "stella artois"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "stella artois"], ["description", "Pilsner beer"], ["price", "25.0"], ["stock", 50], ["created_at", "2022-07-17 08:02:35.378059"], ["updated_at", "2022-07-17 08:02:35.378059"], ["likes_count", 0]]
TRANSACTION (5.8ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 11], ["tag_id", 3]]
TRANSACTION (5.7ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 11], ["tag_id", 7]]
TRANSACTION (4.5ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "corona"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "corona"], ["description", "Beer"], ["price", "12.5"], ["stock", 25], ["created_at", "2022-07-17 08:02:35.429531"], ["updated_at", "2022-07-17 08:02:35.429531"], ["likes_count", 0]]
TRANSACTION (3.4ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.4ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 12], ["tag_id", 3]]
TRANSACTION (3.6ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.4ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 12], ["tag_id", 7]]
TRANSACTION (5.4ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "heineken"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "heineken"], ["description", "Pale lager beer"], ["price", "15.5"], ["stock", 70], ["created_at", "2022-07-17 08:02:35.479663"], ["updated_at", "2022-07-17 08:02:35.479663"], ["likes_count", 0]]
TRANSACTION (3.8ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 13], ["tag_id", 3]]
TRANSACTION (4.0ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 13], ["tag_id", 7]]
TRANSACTION (12.8ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "budweiser"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "budweiser"], ["description", " American-style pale lager"], ["price", "13.5"], ["stock", 30], ["created_at", "2022-07-17 08:02:35.534846"], ["updated_at", "2022-07-17 08:02:35.534846"], ["likes_count", 0]]
TRANSACTION (23.4ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 14], ["tag_id", 3]]
TRANSACTION (5.5ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.4ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 14], ["tag_id", 7]]
TRANSACTION (19.0ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "guinness"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "guinness"], ["description", " Irish dry stout"], ["price", "31.5"], ["stock", 60], ["created_at", "2022-07-17 08:02:35.637562"], ["updated_at", "2022-07-17 08:02:35.637562"], ["likes_count", 0]]
TRANSACTION (11.2ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 15], ["tag_id", 3]]
TRANSACTION (8.4ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.4ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 15], ["tag_id", 7]]
TRANSACTION (1.0ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "oreo"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "oreo"], ["description", "Sandwich cookie"], ["price", "3.0"], ["stock", 50], ["created_at", "2022-07-17 08:02:35.765174"], ["updated_at", "2022-07-17 08:02:35.765174"], ["likes_count", 0]]
TRANSACTION (19.9ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "cookies"], ["LIMIT", 1]]
TRANSACTION (0.4ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 16], ["tag_id", 4]]
TRANSACTION (23.0ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 16], ["tag_id", 6]]
TRANSACTION (7.1ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "chips ahoy!"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "chips ahoy!"], ["description", " Chocolate chip cookie"], ["price", "2.5"], ["stock", 25], ["created_at", "2022-07-17 08:02:35.903812"], ["updated_at", "2022-07-17 08:02:35.903812"], ["likes_count", 0]]
TRANSACTION (4.6ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "cookies"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 17], ["tag_id", 4]]
TRANSACTION (4.8ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 17], ["tag_id", 6]]
TRANSACTION (4.8ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "m&m's"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "m&m's"], ["description", "Multi-colored button-shaped chocolates"], ["price", "5.0"], ["stock", 70], ["created_at", "2022-07-17 08:02:35.952942"], ["updated_at", "2022-07-17 08:02:35.952942"], ["likes_count", 0]]
TRANSACTION (5.2ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chocolates"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 18], ["tag_id", 5]]
TRANSACTION (5.6ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 18], ["tag_id", 6]]
TRANSACTION (6.3ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "ritz crackers"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "ritz crackers"], ["description", " Snack cracker"], ["price", "2.5"], ["stock", 30], ["created_at", "2022-07-17 08:02:36.003012"], ["updated_at", "2022-07-17 08:02:36.003012"], ["likes_count", 0]]
TRANSACTION (5.6ms)  COMMIT
Tag Load (0.1ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "cookies"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 19], ["tag_id", 4]]
TRANSACTION (5.9ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 19], ["tag_id", 6]]
TRANSACTION (6.1ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "oreo thins"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "oreo thins"], ["description", "Thinner sandwich cookie"], ["price", "3.5"], ["stock", 60], ["created_at", "2022-07-17 08:02:36.053070"], ["updated_at", "2022-07-17 08:02:36.053070"], ["likes_count", 0]]
TRANSACTION (5.2ms)  COMMIT
Tag Load (0.1ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "cookies"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 20], ["tag_id", 4]]
TRANSACTION (5.9ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 20], ["tag_id", 6]]
TRANSACTION (6.3ms)  COMMIT
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 10], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 2], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.9ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 2], ["product_id", 10], ["created_at", "2022-07-17 08:02:36.124989"], ["updated_at", "2022-07-17 08:02:36.124989"]]
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (1.7ms)  COMMIT
TRANSACTION (1.3ms)  BEGIN
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.9ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 10], ["created_at", "2022-07-17 08:02:36.149155"], ["updated_at", "2022-07-17 08:02:36.149155"]]
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (22.9ms)  COMMIT
TRANSACTION (0.4ms)  BEGIN
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 4], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.6ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 4], ["product_id", 10], ["created_at", "2022-07-17 08:02:36.190420"], ["updated_at", "2022-07-17 08:02:36.190420"]]
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (21.8ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 5], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.5ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 5], ["product_id", 10], ["created_at", "2022-07-17 08:02:36.229367"], ["updated_at", "2022-07-17 08:02:36.229367"]]
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (18.3ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 6], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.5ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 6], ["product_id", 10], ["created_at", "2022-07-17 08:02:36.264235"], ["updated_at", "2022-07-17 08:02:36.264235"]]
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (23.8ms)  COMMIT
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 15], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 15], ["LIMIT", 1]]
Like Create (0.5ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 15], ["created_at", "2022-07-17 08:02:36.309289"], ["updated_at", "2022-07-17 08:02:36.309289"]]
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 15]]
TRANSACTION (13.0ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 4], ["product_id", 15], ["LIMIT", 1]]
Like Create (0.5ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 4], ["product_id", 15], ["created_at", "2022-07-17 08:02:36.341650"], ["updated_at", "2022-07-17 08:02:36.341650"]]
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 15]]
TRANSACTION (20.1ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 5], ["product_id", 15], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 5], ["product_id", 15], ["created_at", "2022-07-17 08:02:36.381877"], ["updated_at", "2022-07-17 08:02:36.381877"]]
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 15]]
TRANSACTION (14.8ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 6], ["product_id", 15], ["LIMIT", 1]]
Like Create (0.5ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 6], ["product_id", 15], ["created_at", "2022-07-17 08:02:36.422289"], ["updated_at", "2022-07-17 08:02:36.422289"]]
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 15]]
TRANSACTION (15.0ms)  COMMIT
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
TRANSACTION (0.3ms)  BEGIN
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 2], ["product_id", 3], ["LIMIT", 1]]
Like Create (0.5ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 2], ["product_id", 3], ["created_at", "2022-07-17 08:02:36.459681"], ["updated_at", "2022-07-17 08:02:36.459681"]]
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 3]]
TRANSACTION (13.4ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 3], ["LIMIT", 1]]
Like Create (0.5ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 3], ["created_at", "2022-07-17 08:02:36.489477"], ["updated_at", "2022-07-17 08:02:36.489477"]]
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 3]]
TRANSACTION (6.6ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 4], ["product_id", 3], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 4], ["product_id", 3], ["created_at", "2022-07-17 08:02:36.510581"], ["updated_at", "2022-07-17 08:02:36.510581"]]
Product Update All (0.5ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 3]]
TRANSACTION (20.5ms)  COMMIT

Started GET “/” for 127.0.0.1 at 2022-07-17 03:02:44 -0500

ActiveRecord::SchemaMigration Pluck (0.8ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.0ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 81.4ms | Allocations: 14285)
Product Exists? (1.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (3.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 890.7ms | Allocations: 294038)
Tag Load (5.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.9ms | Allocations: 2063)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1819)
Tag Load (3.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 1819)
Tag Load (4.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 1819)
Tag Load (5.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1839)
Tag Load (5.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.4ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.2ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.7ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1818)
Tag Load (6.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 1818)
Tag Load (3.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 1335.0ms | Allocations: 350094)
Rendered layout layouts/application.html.erb (Duration: 1532.1ms | Allocations: 405591)

Completed 200 OK in 1663ms (Views: 1467.5ms | ActiveRecord: 90.5ms | Allocations: 429452)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:02:48 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 2.9ms | Allocations: 724)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 14.2ms | Allocations: 3527)
Rendered layout layouts/application.html.erb (Duration: 36.4ms | Allocations: 11447)

Completed 200 OK in 43ms (Views: 39.2ms | ActiveRecord: 0.0ms | Allocations: 13335)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:02:54 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"test1@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/

Order Load (2.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2 LIMIT $3  [["user_id", 3], ["status", 0], ["LIMIT", 1]]
↳ app/controllers/sessions_controller.rb:12:in `after_login'
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/sessions_controller.rb:15:in `after_login'
Order Create (1.6ms)  INSERT INTO "orders" ("date", "user_id", "total", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["date", nil], ["user_id", 3], ["total", "0.0"], ["status", 0], ["created_at", "2022-07-17 08:02:54.778837"], ["updated_at", "2022-07-17 08:02:54.778837"]]
↳ app/controllers/sessions_controller.rb:15:in `after_login'
TRANSACTION (1.1ms)  COMMIT
↳ app/controllers/sessions_controller.rb:15:in `after_login'

Completed 302 Found in 288ms (ActiveRecord: 5.5ms | Allocations: 10167)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:02:54 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.4ms | Allocations: 8556)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.4ms | Allocations: 3714)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2632)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.7ms | Allocations: 2704)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 45.2ms | Allocations: 9921)
Rendered products/index.html.erb within layouts/application (Duration: 280.6ms | Allocations: 66998)
Rendered layout layouts/application.html.erb (Duration: 281.7ms | Allocations: 67088)

Completed 500 Internal Server Error in 293ms (ActiveRecord: 16.7ms | Allocations: 69469)

ActionView::Template::Error (undefined method ‘like_path’ for #<ActionView::Base:0x00000000010a18>

@output_buffer.safe_append=‘ ’.freeze;@output_buffer.append=( button_to “Dislike?”, like_path(product.find_like(current_user)), { method: :delete, class: button_style } );@output_buffer.safe_append=‘

                                                                                       ^^^^^^^^^):
14:     <% if policy(product.likes).create? %>
15:       
16:       <% if product.liked_by? current_user %>
17:         <%= button_to "Dislike?", like_path(product.find_like(current_user)), { method: :delete, class: button_style } %>
18:       <% else %>
19:         <%= button_to "Like?", product_likes_path(product), { method: :post, class: button_style } %>
20:       <% end %>

app/views/products/_product_cart.html.erb:17 app/views/products/index.html.erb:9 app/views/products/index.html.erb:8 Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:05:46 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by SessionsController#new as HTML

User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]

Redirected to localhost:3000/ Filter chain halted as :require_no_authentication rendered or redirected Completed 302 Found in 32ms (ActiveRecord: 9.1ms | Allocations: 5592)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:05:47 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 26.9ms | Allocations: 12642)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 44.4ms | Allocations: 10574)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2850)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2704)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 22.7ms | Allocations: 5130)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 3426)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 3426)
Rendered products/index.html.erb within layouts/application (Duration: 289.3ms | Allocations: 82434)
Rendered layout layouts/application.html.erb (Duration: 325.1ms | Allocations: 105202)

Completed 200 OK in 383ms (Views: 298.5ms | ActiveRecord: 37.8ms | Allocations: 119551)

Started GET “/products/1” for 127.0.0.1 at 2022-07-17 03:05:52 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.4ms | Allocations: 3449)
Rendered comments/_form.html.erb (Duration: 15.9ms | Allocations: 5184)
Comment Load (0.8ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 11.1ms | Allocations: 2932)
Rendered products/show.html.erb within layouts/application (Duration: 55.8ms | Allocations: 13358)
Rendered layout layouts/application.html.erb (Duration: 74.2ms | Allocations: 21180)

Completed 200 OK in 92ms (Views: 65.9ms | ActiveRecord: 9.6ms | Allocations: 24061)

Started POST “/products/1/comments” for 127.0.0.1 at 2022-07-17 03:06:00 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"New Comment", "rate"=>"2"}, "commit"=>"Add comment", "product_id"=>"1"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:39:in `set_commentable'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:10:in `create'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/comments_controller.rb:13:in `create'
Comment Create (0.9ms)  INSERT INTO "comments" ("body", "rate", "user_id", "commentable_type", "commentable_id", "created_at", "updated_at", "approved") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["body", "New Comment"], ["rate", 2], ["user_id", 3], ["commentable_type", "Product"], ["commentable_id", 1], ["created_at", "2022-07-17 08:06:00.219202"], ["updated_at", "2022-07-17 08:06:00.219202"], ["approved", false]]
↳ app/controllers/comments_controller.rb:13:in `create'
TRANSACTION (1.1ms)  COMMIT
↳ app/controllers/comments_controller.rb:13:in `create'

Redirected to localhost:3000/products/1 Completed 302 Found in 19ms (ActiveRecord: 2.7ms | Allocations: 5603)

Started GET “/products/1” for 127.0.0.1 at 2022-07-17 03:06:00 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"1"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.3ms | Allocations: 3565)
Rendered comments/_form.html.erb (Duration: 1.8ms | Allocations: 772)
Comment Load (0.6ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 7.8ms | Allocations: 2677)
Rendered products/show.html.erb within layouts/application (Duration: 33.0ms | Allocations: 7293)
Rendered layout layouts/application.html.erb (Duration: 47.8ms | Allocations: 15094)

Completed 200 OK in 55ms (Views: 46.5ms | ActiveRecord: 2.6ms | Allocations: 17349)

Started GET “/products/1” for 127.0.0.1 at 2022-07-17 03:06:02 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (3.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.5ms | Allocations: 3429)
Rendered comments/_form.html.erb (Duration: 1.8ms | Allocations: 763)
Comment Load (6.2ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 12.9ms | Allocations: 1586)
Rendered products/show.html.erb within layouts/application (Duration: 33.1ms | Allocations: 6045)
Rendered layout layouts/application.html.erb (Duration: 54.0ms | Allocations: 13742)

Completed 200 OK in 72ms (Views: 43.4ms | ActiveRecord: 12.9ms | Allocations: 15852)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:06:05 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.4ms | Allocations: 8584)
Product Exists? (0.9ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.0ms | Allocations: 3468)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 2632)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 2632)
Tag Load (4.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 2632)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 32.3ms | Allocations: 2632)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.8ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 2632)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 2730)
Tag Load (4.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.3ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2632)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.7ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2632)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 2632)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 2632)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.8ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 17.7ms | Allocations: 3422)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.6ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 3426)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.7ms | Allocations: 3426)
Rendered products/index.html.erb within layouts/application (Duration: 390.0ms | Allocations: 67229)
Rendered layout layouts/application.html.erb (Duration: 407.3ms | Allocations: 74951)

Completed 200 OK in 423ms (Views: 357.4ms | ActiveRecord: 54.9ms | Allocations: 76611)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-17 03:06:06 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 48ms (ActiveRecord: 0.2ms | Allocations: 2946)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:06:07 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.3ms | Allocations: 8632)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1996)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1818)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1818)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 183.4ms | Allocations: 47943)
Rendered layout layouts/application.html.erb (Duration: 198.5ms | Allocations: 55728)

Completed 200 OK in 210ms (Views: 188.6ms | ActiveRecord: 12.8ms | Allocations: 57345)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:06:08 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 1.0ms | Allocations: 165)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 6.4ms | Allocations: 1554)
Rendered layout layouts/application.html.erb (Duration: 28.8ms | Allocations: 9472)

Completed 200 OK in 39ms (Views: 36.7ms | ActiveRecord: 0.0ms | Allocations: 10515)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:06:14 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"support@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "support@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 232ms (ActiveRecord: 0.8ms | Allocations: 2707)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:06:15 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.9ms | Allocations: 8585)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2102)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1228)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1228)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1228)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1228)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1228)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1228)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.5ms | Allocations: 1246)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.6ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1228)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1228)
Tag Load (3.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.5ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1228)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.3ms | Allocations: 1227)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 1227)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1227)
Rendered products/index.html.erb within layouts/application (Duration: 146.3ms | Allocations: 36736)
Rendered layout layouts/application.html.erb (Duration: 159.8ms | Allocations: 44433)

Completed 200 OK in 165ms (Views: 150.8ms | ActiveRecord: 9.8ms | Allocations: 45826)

Started GET “/products/1” for 127.0.0.1 at 2022-07-17 03:06:16 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (1.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 16.2ms | Allocations: 2031)
Comment Load (0.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 6.2ms | Allocations: 1683)
Rendered products/show.html.erb within layouts/application (Duration: 23.2ms | Allocations: 3918)
Rendered layout layouts/application.html.erb (Duration: 38.6ms | Allocations: 11583)

Completed 200 OK in 52ms (Views: 37.0ms | ActiveRecord: 4.5ms | Allocations: 13412)

Started GET “/products/1/comments/1” for 127.0.0.1 at 2022-07-17 03:06:17 -0500

AbstractController::ActionNotFound (The action ‘show’ could not be found for CommentsController):

actionpack (7.0.3) lib/abstract_controller/base.rb:146:in ‘process’ actionview (7.0.3) lib/action_view/rendering.rb:39:in ‘process’ actionpack (7.0.3) lib/action_controller/metal.rb:188:in ‘dispatch’ actionpack (7.0.3) lib/action_controller/metal.rb:251:in ‘dispatch’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:49:in ‘dispatch’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:32:in ‘serve’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:50:in ‘block in serve’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:32:in ‘each’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:32:in ‘serve’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:852:in ‘call’ warden (1.2.9) lib/warden/manager.rb:36:in ‘block in call’ warden (1.2.9) lib/warden/manager.rb:34:in ‘catch’ warden (1.2.9) lib/warden/manager.rb:34:in ‘call’ rack (2.2.4) lib/rack/tempfile_reaper.rb:15:in ‘call’ rack (2.2.4) lib/rack/etag.rb:27:in ‘call’ rack (2.2.4) lib/rack/conditional_get.rb:27:in ‘call’ rack (2.2.4) lib/rack/head.rb:12:in ‘call’ actionpack (7.0.3) lib/action_dispatch/http/permissions_policy.rb:38:in ‘call’ actionpack (7.0.3) lib/action_dispatch/http/content_security_policy.rb:36:in ‘call’ rack (2.2.4) lib/rack/session/abstract/id.rb:266:in ‘context’ rack (2.2.4) lib/rack/session/abstract/id.rb:260:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/cookies.rb:697:in ‘call’ activerecord (7.0.3) lib/active_record/migration.rb:603:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:27:in ‘block in call’ activesupport (7.0.3) lib/active_support/callbacks.rb:99:in ‘run_callbacks’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:26:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/debug_exceptions.rb:28:in ‘call’ web-console (4.2.0) lib/web_console/middleware.rb:132:in ‘call_app’ web-console (4.2.0) lib/web_console/middleware.rb:28:in ‘block in call’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘catch’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/show_exceptions.rb:26:in ‘call’ railties (7.0.3) lib/rails/rack/logger.rb:40:in ‘call_app’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘block in call’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘block in tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:38:in ‘tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘tagged’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘call’ sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/remote_ip.rb:93:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/request_id.rb:26:in ‘call’ rack (2.2.4) lib/rack/method_override.rb:24:in ‘call’ rack (2.2.4) lib/rack/runtime.rb:22:in ‘call’ activesupport (7.0.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/server_timing.rb:20:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/static.rb:23:in ‘call’ rack (2.2.4) lib/rack/sendfile.rb:110:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/host_authorization.rb:137:in ‘call’ railties (7.0.3) lib/rails/engine.rb:530:in ‘call’ puma (5.6.4) lib/puma/configuration.rb:252:in ‘call’ puma (5.6.4) lib/puma/request.rb:77:in ‘block in handle_request’ puma (5.6.4) lib/puma/thread_pool.rb:340:in ‘with_force_shutdown’ puma (5.6.4) lib/puma/request.rb:76:in ‘handle_request’ puma (5.6.4) lib/puma/server.rb:441:in ‘process_client’ puma (5.6.4) lib/puma/thread_pool.rb:147:in ‘block in spawn_thread’ Started GET “/products/1” for 127.0.0.1 at 2022-07-17 03:06:24 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 2032)
Comment Load (0.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (1.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 12.6ms | Allocations: 1631)
Rendered products/show.html.erb within layouts/application (Duration: 36.1ms | Allocations: 3848)
Rendered layout layouts/application.html.erb (Duration: 51.0ms | Allocations: 11538)

Completed 200 OK in 67ms (Views: 48.0ms | ActiveRecord: 6.8ms | Allocations: 13347)

Started GET “/products/1” for 127.0.0.1 at 2022-07-17 03:06:26 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2031)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 13.2ms | Allocations: 1626)
Rendered products/show.html.erb within layouts/application (Duration: 26.7ms | Allocations: 3842)
Rendered layout layouts/application.html.erb (Duration: 43.0ms | Allocations: 11512)

Completed 200 OK in 58ms (Views: 44.1ms | ActiveRecord: 1.7ms | Allocations: 13320)

Started GET “/products/1” for 127.0.0.1 at 2022-07-17 03:07:22 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 79.7ms | Allocations: 15143)
Comment Load (0.8ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 43.2ms | Allocations: 7149)
Rendered products/show.html.erb within layouts/application (Duration: 130.4ms | Allocations: 23596)
Rendered layout layouts/application.html.erb (Duration: 200.1ms | Allocations: 46388)

Completed 200 OK in 275ms (Views: 182.1ms | ActiveRecord: 32.8ms | Allocations: 63741)

Started GET “/products/1/comments/1” for 127.0.0.1 at 2022-07-17 03:07:24 -0500

AbstractController::ActionNotFound (The action ‘show’ could not be found for CommentsController):

actionpack (7.0.3) lib/abstract_controller/base.rb:146:in ‘process’ actionview (7.0.3) lib/action_view/rendering.rb:39:in ‘process’ actionpack (7.0.3) lib/action_controller/metal.rb:188:in ‘dispatch’ actionpack (7.0.3) lib/action_controller/metal.rb:251:in ‘dispatch’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:49:in ‘dispatch’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:32:in ‘serve’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:50:in ‘block in serve’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:32:in ‘each’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:32:in ‘serve’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:852:in ‘call’ warden (1.2.9) lib/warden/manager.rb:36:in ‘block in call’ warden (1.2.9) lib/warden/manager.rb:34:in ‘catch’ warden (1.2.9) lib/warden/manager.rb:34:in ‘call’ rack (2.2.4) lib/rack/tempfile_reaper.rb:15:in ‘call’ rack (2.2.4) lib/rack/etag.rb:27:in ‘call’ rack (2.2.4) lib/rack/conditional_get.rb:27:in ‘call’ rack (2.2.4) lib/rack/head.rb:12:in ‘call’ actionpack (7.0.3) lib/action_dispatch/http/permissions_policy.rb:38:in ‘call’ actionpack (7.0.3) lib/action_dispatch/http/content_security_policy.rb:36:in ‘call’ rack (2.2.4) lib/rack/session/abstract/id.rb:266:in ‘context’ rack (2.2.4) lib/rack/session/abstract/id.rb:260:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/cookies.rb:697:in ‘call’ activerecord (7.0.3) lib/active_record/migration.rb:603:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:27:in ‘block in call’ activesupport (7.0.3) lib/active_support/callbacks.rb:99:in ‘run_callbacks’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:26:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/debug_exceptions.rb:28:in ‘call’ web-console (4.2.0) lib/web_console/middleware.rb:132:in ‘call_app’ web-console (4.2.0) lib/web_console/middleware.rb:28:in ‘block in call’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘catch’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/show_exceptions.rb:26:in ‘call’ railties (7.0.3) lib/rails/rack/logger.rb:40:in ‘call_app’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘block in call’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘block in tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:38:in ‘tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘tagged’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘call’ sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/remote_ip.rb:93:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/request_id.rb:26:in ‘call’ rack (2.2.4) lib/rack/method_override.rb:24:in ‘call’ rack (2.2.4) lib/rack/runtime.rb:22:in ‘call’ activesupport (7.0.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/server_timing.rb:20:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/static.rb:23:in ‘call’ rack (2.2.4) lib/rack/sendfile.rb:110:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/host_authorization.rb:137:in ‘call’ railties (7.0.3) lib/rails/engine.rb:530:in ‘call’ puma (5.6.4) lib/puma/configuration.rb:252:in ‘call’ puma (5.6.4) lib/puma/request.rb:77:in ‘block in handle_request’ puma (5.6.4) lib/puma/thread_pool.rb:340:in ‘with_force_shutdown’ puma (5.6.4) lib/puma/request.rb:76:in ‘handle_request’ puma (5.6.4) lib/puma/server.rb:441:in ‘process_client’ puma (5.6.4) lib/puma/thread_pool.rb:147:in ‘block in spawn_thread’ Started GET “/products/1” for 127.0.0.1 at 2022-07-17 03:09:20 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 44.8ms | Allocations: 15147)
Comment Load (4.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 26.9ms | Allocations: 7140)
Rendered products/show.html.erb within layouts/application (Duration: 76.1ms | Allocations: 23594)
Rendered layout layouts/application.html.erb (Duration: 115.9ms | Allocations: 46391)

Completed 200 OK in 184ms (Views: 99.9ms | ActiveRecord: 31.1ms | Allocations: 63765)

Started GET “/products/1/comments/1” for 127.0.0.1 at 2022-07-17 03:09:23 -0500

AbstractController::ActionNotFound (The action ‘show’ could not be found for CommentsController):

actionpack (7.0.3) lib/abstract_controller/base.rb:146:in ‘process’ actionview (7.0.3) lib/action_view/rendering.rb:39:in ‘process’ actionpack (7.0.3) lib/action_controller/metal.rb:188:in ‘dispatch’ actionpack (7.0.3) lib/action_controller/metal.rb:251:in ‘dispatch’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:49:in ‘dispatch’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:32:in ‘serve’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:50:in ‘block in serve’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:32:in ‘each’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:32:in ‘serve’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:852:in ‘call’ warden (1.2.9) lib/warden/manager.rb:36:in ‘block in call’ warden (1.2.9) lib/warden/manager.rb:34:in ‘catch’ warden (1.2.9) lib/warden/manager.rb:34:in ‘call’ rack (2.2.4) lib/rack/tempfile_reaper.rb:15:in ‘call’ rack (2.2.4) lib/rack/etag.rb:27:in ‘call’ rack (2.2.4) lib/rack/conditional_get.rb:27:in ‘call’ rack (2.2.4) lib/rack/head.rb:12:in ‘call’ actionpack (7.0.3) lib/action_dispatch/http/permissions_policy.rb:38:in ‘call’ actionpack (7.0.3) lib/action_dispatch/http/content_security_policy.rb:36:in ‘call’ rack (2.2.4) lib/rack/session/abstract/id.rb:266:in ‘context’ rack (2.2.4) lib/rack/session/abstract/id.rb:260:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/cookies.rb:697:in ‘call’ activerecord (7.0.3) lib/active_record/migration.rb:603:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:27:in ‘block in call’ activesupport (7.0.3) lib/active_support/callbacks.rb:99:in ‘run_callbacks’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:26:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/debug_exceptions.rb:28:in ‘call’ web-console (4.2.0) lib/web_console/middleware.rb:132:in ‘call_app’ web-console (4.2.0) lib/web_console/middleware.rb:28:in ‘block in call’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘catch’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/show_exceptions.rb:26:in ‘call’ railties (7.0.3) lib/rails/rack/logger.rb:40:in ‘call_app’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘block in call’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘block in tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:38:in ‘tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘tagged’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘call’ sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/remote_ip.rb:93:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/request_id.rb:26:in ‘call’ rack (2.2.4) lib/rack/method_override.rb:24:in ‘call’ rack (2.2.4) lib/rack/runtime.rb:22:in ‘call’ activesupport (7.0.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/server_timing.rb:20:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/static.rb:23:in ‘call’ rack (2.2.4) lib/rack/sendfile.rb:110:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/host_authorization.rb:137:in ‘call’ railties (7.0.3) lib/rails/engine.rb:530:in ‘call’ puma (5.6.4) lib/puma/configuration.rb:252:in ‘call’ puma (5.6.4) lib/puma/request.rb:77:in ‘block in handle_request’ puma (5.6.4) lib/puma/thread_pool.rb:340:in ‘with_force_shutdown’ puma (5.6.4) lib/puma/request.rb:76:in ‘handle_request’ puma (5.6.4) lib/puma/server.rb:441:in ‘process_client’ puma (5.6.4) lib/puma/thread_pool.rb:147:in ‘block in spawn_thread’ Started GET “/products/1” for 127.0.0.1 at 2022-07-17 03:10:41 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 58.6ms | Allocations: 15143)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 29.4ms | Allocations: 7357)
Rendered products/show.html.erb within layouts/application (Duration: 92.5ms | Allocations: 23807)
Rendered layout layouts/application.html.erb (Duration: 131.7ms | Allocations: 46582)

Completed 200 OK in 215ms (Views: 111.7ms | ActiveRecord: 35.4ms | Allocations: 63948)

Started GET “/products/1” for 127.0.0.1 at 2022-07-17 03:10:42 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (10.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 21.3ms | Allocations: 2092)
Comment Load (3.0ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 17.6ms | Allocations: 1816)
Rendered products/show.html.erb within layouts/application (Duration: 42.0ms | Allocations: 4094)
Rendered layout layouts/application.html.erb (Duration: 64.3ms | Allocations: 11760)

Completed 200 OK in 81ms (Views: 51.8ms | ActiveRecord: 14.9ms | Allocations: 13691)

Started PATCH “/products/1/comments/1” for 127.0.0.1 at 2022-07-17 03:10:44 -0500 Processing by CommentsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"1", "id"=>"1"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:39:in `set_commentable'
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND "comments"."id" = $3 LIMIT $4  [["commentable_id", 1], ["commentable_type", "Product"], ["id", 1], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:46:in `set_comment'
User Load (1.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:46:in `set_comment'
TRANSACTION (1.4ms)  BEGIN
↳ app/controllers/comments_controller.rb:20:in `update'
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:20:in `update'
Comment Update (1.9ms)  UPDATE "comments" SET "updated_at" = $1, "approved" = $2 WHERE "comments"."id" = $3  [["updated_at", "2022-07-17 08:10:44.987029"], ["approved", true], ["id", 1]]
↳ app/controllers/comments_controller.rb:20:in `update'
TRANSACTION (37.6ms)  COMMIT
↳ app/controllers/comments_controller.rb:20:in `update'

Redirected to localhost:3000/products/1 Completed 302 Found in 72ms (ActiveRecord: 44.1ms | Allocations: 6218)

Started GET “/products/1” for 127.0.0.1 at 2022-07-17 03:10:45 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"1"}
Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2079)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 23.1ms | Allocations: 1594)
Rendered products/show.html.erb within layouts/application (Duration: 35.6ms | Allocations: 3905)
Rendered layout layouts/application.html.erb (Duration: 51.4ms | Allocations: 11734)

Completed 200 OK in 67ms (Views: 54.0ms | ActiveRecord: 1.8ms | Allocations: 13608)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-17 03:10:51 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 18ms (ActiveRecord: 0.2ms | Allocations: 2615)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:10:51 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.2ms | Allocations: 9629)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.8ms | Allocations: 2121)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1820)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1837)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (4.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1819)
Tag Load (3.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 1819)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1819)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1819)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1819)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 209.5ms | Allocations: 49226)
Rendered layout layouts/application.html.erb (Duration: 224.6ms | Allocations: 56999)

Completed 200 OK in 235ms (Views: 200.6ms | ActiveRecord: 24.8ms | Allocations: 58555)

Started GET “/products/1” for 127.0.0.1 at 2022-07-17 03:10:53 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1863)
Comment Load (1.2ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 23.0ms | Allocations: 1631)
Rendered products/show.html.erb within layouts/application (Duration: 30.0ms | Allocations: 3722)
Rendered layout layouts/application.html.erb (Duration: 63.0ms | Allocations: 11429)

Completed 200 OK in 85ms (Views: 66.9ms | ActiveRecord: 3.4ms | Allocations: 13337)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:10:56 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.0ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.6ms | Allocations: 8567)
Product Exists? (1.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (2.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1895)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1819)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1819)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 1819)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1819)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1819)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1837)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1819)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 1819)
Tag Load (4.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1819)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1818)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.9ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 234.5ms | Allocations: 47769)
Rendered layout layouts/application.html.erb (Duration: 261.1ms | Allocations: 55438)

Completed 200 OK in 277ms (Views: 232.7ms | ActiveRecord: 35.7ms | Allocations: 56774)

Started GET “/products/1” for 127.0.0.1 at 2022-07-17 03:11:53 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (3.8ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1863)
Comment Load (1.9ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 9.4ms | Allocations: 1595)
Rendered products/show.html.erb within layouts/application (Duration: 20.7ms | Allocations: 3678)
Rendered layout layouts/application.html.erb (Duration: 40.3ms | Allocations: 11338)

Completed 200 OK in 57ms (Views: 38.0ms | ActiveRecord: 8.3ms | Allocations: 13138)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:11:54 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 13.3ms | Allocations: 8567)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1895)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1819)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (5.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 150.4ms | Allocations: 47764)
Rendered layout layouts/application.html.erb (Duration: 169.8ms | Allocations: 55424)

Completed 200 OK in 178ms (Views: 156.9ms | ActiveRecord: 14.1ms | Allocations: 56747)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:11:54 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 0.3ms | Allocations: 164)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 5.6ms | Allocations: 1558)
Rendered layout layouts/application.html.erb (Duration: 21.5ms | Allocations: 9477)

Completed 200 OK in 27ms (Views: 23.2ms | ActiveRecord: 0.0ms | Allocations: 10792)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:12:01 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"alvaro@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 243ms (ActiveRecord: 0.7ms | Allocations: 2735)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:12:01 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.3ms | Allocations: 8586)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2379)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (4.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1494)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1494)
Tag Load (5.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1493)
Rendered products/index.html.erb within layouts/application (Duration: 165.3ms | Allocations: 42127)
Rendered layout layouts/application.html.erb (Duration: 184.3ms | Allocations: 49794)

Completed 200 OK in 191ms (Views: 159.0ms | ActiveRecord: 26.7ms | Allocations: 51186)

Started GET “/products/1” for 127.0.0.1 at 2022-07-17 03:12:03 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 20.6ms | Allocations: 2298)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 12.3ms | Allocations: 1670)
Rendered products/show.html.erb within layouts/application (Duration: 34.9ms | Allocations: 4172)
Rendered layout layouts/application.html.erb (Duration: 53.5ms | Allocations: 11837)

Completed 200 OK in 70ms (Views: 56.8ms | ActiveRecord: 3.0ms | Allocations: 13663)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:12:05 -0500 Processing by ProductsController#index as HTML

Order Load (4.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.6ms | Allocations: 8567)
Product Exists? (3.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (3.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 14.6ms | Allocations: 2333)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1494)
Tag Load (3.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1494)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 1494)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 1494)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1512)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 1494)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1493)
Rendered products/index.html.erb within layouts/application (Duration: 202.9ms | Allocations: 42048)
Rendered layout layouts/application.html.erb (Duration: 216.9ms | Allocations: 49713)

Completed 200 OK in 232ms (Views: 185.9ms | ActiveRecord: 35.7ms | Allocations: 51060)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:14:51 -0500

ActiveRecord::SchemaMigration Pluck (1.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.9ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 226.0ms | Allocations: 14281)
Product Exists? (2.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (2.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 623.6ms | Allocations: 292828)
Tag Load (3.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 1711)
Tag Load (7.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.1ms | Allocations: 1494)
Tag Load (4.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1494)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1494)
Tag Load (6.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 26.4ms | Allocations: 1494)
Tag Load (12.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1493)
Rendered products/index.html.erb within layouts/application (Duration: 1200.7ms | Allocations: 342755)
Rendered layout layouts/application.html.erb (Duration: 1409.2ms | Allocations: 398101)

Completed 200 OK in 1640ms (Views: 1340.3ms | ActiveRecord: 97.7ms | Allocations: 421957)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-17 03:14:54 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 12ms (ActiveRecord: 0.3ms | Allocations: 3502)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:14:54 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.1ms | Allocations: 8632)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2650)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 2057)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 150.6ms | Allocations: 48862)
Rendered layout layouts/application.html.erb (Duration: 163.7ms | Allocations: 56637)

Completed 200 OK in 171ms (Views: 158.1ms | ActiveRecord: 6.9ms | Allocations: 58239)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:14:55 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 2.1ms | Allocations: 724)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 12.3ms | Allocations: 3505)
Rendered layout layouts/application.html.erb (Duration: 58.6ms | Allocations: 11481)

Completed 200 OK in 65ms (Views: 61.8ms | ActiveRecord: 0.0ms | Allocations: 13217)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:15:03 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"test1@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/

Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2 LIMIT $3  [["user_id", 3], ["status", 0], ["LIMIT", 1]]
↳ app/controllers/sessions_controller.rb:12:in `after_login'
TRANSACTION (0.2ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
TRANSACTION (0.3ms)  COMMIT
↳ app/controllers/sessions_controller.rb:15:in `after_login'

Completed 302 Found in 295ms (ActiveRecord: 1.7ms | Allocations: 8792)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:15:03 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.1ms | Allocations: 8557)
Product Exists? (1.8ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 3699)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2632)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2704)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 22.1ms | Allocations: 5171)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (1.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 3426)
Rendered products/index.html.erb within layouts/application (Duration: 250.1ms | Allocations: 69213)
Rendered layout layouts/application.html.erb (Duration: 270.4ms | Allocations: 77072)

Completed 200 OK in 276ms (Views: 243.5ms | ActiveRecord: 27.9ms | Allocations: 79432)

Started GET “/products/1” for 127.0.0.1 at 2022-07-17 03:15:05 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 32.2ms | Allocations: 3430)
Rendered comments/_form.html.erb (Duration: 22.6ms | Allocations: 5109)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 29.9ms | Allocations: 5663)
Rendered products/show.html.erb within layouts/application (Duration: 95.2ms | Allocations: 16023)
Rendered layout layouts/application.html.erb (Duration: 111.1ms | Allocations: 23855)

Completed 200 OK in 124ms (Views: 105.8ms | ActiveRecord: 6.5ms | Allocations: 26670)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:15:07 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 13.6ms | Allocations: 8606)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (4.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 75.3ms | Allocations: 3547)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 33.4ms | Allocations: 2633)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 31.2ms | Allocations: 2632)
Tag Load (4.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.4ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.2ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 67.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2704)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 3422)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 3426)
Rendered products/index.html.erb within layouts/application (Duration: 429.4ms | Allocations: 67314)
Rendered layout layouts/application.html.erb (Duration: 442.2ms | Allocations: 75068)

Completed 200 OK in 460ms (Views: 415.8ms | ActiveRecord: 27.2ms | Allocations: 76834)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:15:08 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.7ms | Allocations: 3429)
Rendered comments/_form.html.erb (Duration: 1.6ms | Allocations: 772)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 2.8ms | Allocations: 760)
Rendered products/show.html.erb within layouts/application (Duration: 23.0ms | Allocations: 5229)
Rendered layout layouts/application.html.erb (Duration: 46.7ms | Allocations: 12926)

Completed 200 OK in 57ms (Views: 46.1ms | ActiveRecord: 2.6ms | Allocations: 15064)

Started POST “/products/2/comments” for 127.0.0.1 at 2022-07-17 03:15:13 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"New comment again", "rate"=>"3"}, "commit"=>"Add comment", "product_id"=>"2"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:39:in `set_commentable'
User Load (3.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:10:in `create'
TRANSACTION (2.1ms)  BEGIN
↳ app/controllers/comments_controller.rb:13:in `create'
Comment Create (0.7ms)  INSERT INTO "comments" ("body", "rate", "user_id", "commentable_type", "commentable_id", "created_at", "updated_at", "approved") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["body", "New comment again"], ["rate", 3], ["user_id", 3], ["commentable_type", "Product"], ["commentable_id", 2], ["created_at", "2022-07-17 08:15:13.678020"], ["updated_at", "2022-07-17 08:15:13.678020"], ["approved", false]]
↳ app/controllers/comments_controller.rb:13:in `create'
TRANSACTION (1.2ms)  COMMIT
↳ app/controllers/comments_controller.rb:13:in `create'

Redirected to localhost:3000/products/2 Completed 302 Found in 28ms (ActiveRecord: 7.3ms | Allocations: 5855)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:15:13 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"2"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.5ms | Allocations: 3558)
Rendered comments/_form.html.erb (Duration: 1.9ms | Allocations: 772)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 8.5ms | Allocations: 1603)
Rendered products/show.html.erb within layouts/application (Duration: 31.1ms | Allocations: 6212)
Rendered layout layouts/application.html.erb (Duration: 47.0ms | Allocations: 14011)

Completed 200 OK in 57ms (Views: 46.6ms | ActiveRecord: 2.4ms | Allocations: 16190)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:15:15 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (1.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.9ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 25.4ms | Allocations: 3429)
Rendered comments/_form.html.erb (Duration: 1.7ms | Allocations: 763)
Comment Load (1.9ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (1.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 8.9ms | Allocations: 1586)
Rendered products/show.html.erb within layouts/application (Duration: 42.0ms | Allocations: 6045)
Rendered layout layouts/application.html.erb (Duration: 58.8ms | Allocations: 13742)

Completed 200 OK in 86ms (Views: 58.2ms | ActiveRecord: 10.3ms | Allocations: 15865)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:15:16 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (12.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 25.6ms | Allocations: 8581)
Product Exists? (1.9ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.2ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (3.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.8ms | Allocations: 3467)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.5ms | Allocations: 2704)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2633)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.7ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 3421)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 22.6ms | Allocations: 3452)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.4ms | Allocations: 3426)
Rendered products/index.html.erb within layouts/application (Duration: 344.9ms | Allocations: 67220)
Rendered layout layouts/application.html.erb (Duration: 360.2ms | Allocations: 74973)

Completed 200 OK in 378ms (Views: 321.2ms | ActiveRecord: 41.8ms | Allocations: 76623)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-17 03:15:17 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 17ms (ActiveRecord: 0.8ms | Allocations: 1848)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:15:17 -0500 Processing by ProductsController#index as HTML

Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.4ms | Allocations: 8568)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (4.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1914)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1821)
Tag Load (6.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 203.8ms | Allocations: 47787)
Rendered layout layouts/application.html.erb (Duration: 231.4ms | Allocations: 55504)

Completed 200 OK in 243ms (Views: 216.3ms | ActiveRecord: 20.4ms | Allocations: 56857)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:15:18 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 0.5ms | Allocations: 138)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 6.6ms | Allocations: 1297)
Rendered layout layouts/application.html.erb (Duration: 30.3ms | Allocations: 8977)

Completed 200 OK in 35ms (Views: 33.0ms | ActiveRecord: 0.0ms | Allocations: 9645)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:15:23 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"test2@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.2ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "test2@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2 LIMIT $3  [["user_id", 4], ["status", 0], ["LIMIT", 1]]
↳ app/controllers/sessions_controller.rb:12:in `after_login'
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/sessions_controller.rb:15:in `after_login'
Order Create (0.6ms)  INSERT INTO "orders" ("date", "user_id", "total", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["date", nil], ["user_id", 4], ["total", "0.0"], ["status", 0], ["created_at", "2022-07-17 08:15:24.197561"], ["updated_at", "2022-07-17 08:15:24.197561"]]
↳ app/controllers/sessions_controller.rb:15:in `after_login'
TRANSACTION (3.0ms)  COMMIT
↳ app/controllers/sessions_controller.rb:15:in `after_login'

Completed 302 Found in 280ms (ActiveRecord: 5.8ms | Allocations: 5583)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:15:24 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.1ms | Allocations: 8561)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 3472)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2704)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2633)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 3422)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 3426)
Rendered products/index.html.erb within layouts/application (Duration: 211.3ms | Allocations: 67183)
Rendered layout layouts/application.html.erb (Duration: 225.3ms | Allocations: 74936)

Completed 200 OK in 231ms (Views: 211.5ms | ActiveRecord: 15.0ms | Allocations: 76587)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:15:25 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.8ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (2.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 24.4ms | Allocations: 3429)
Rendered comments/_form.html.erb (Duration: 1.7ms | Allocations: 763)
Comment Load (3.6ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (3.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 17.7ms | Allocations: 1586)
Rendered products/show.html.erb within layouts/application (Duration: 53.6ms | Allocations: 6045)
Rendered layout layouts/application.html.erb (Duration: 84.5ms | Allocations: 13742)

Completed 200 OK in 115ms (Views: 77.0ms | ActiveRecord: 14.0ms | Allocations: 15871)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:15:34 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.8ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.6ms | Allocations: 8563)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.1ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 25.7ms | Allocations: 3467)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 2632)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 2632)
Tag Load (5.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.3ms | Allocations: 2632)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 2632)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.7ms | Allocations: 2632)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.1ms | Allocations: 2704)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.4ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 21.8ms | Allocations: 3421)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.7ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 3429)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.5ms | Allocations: 3426)
Rendered products/index.html.erb within layouts/application (Duration: 361.1ms | Allocations: 67201)
Rendered layout layouts/application.html.erb (Duration: 393.7ms | Allocations: 74955)

Completed 200 OK in 415ms (Views: 358.2ms | ActiveRecord: 38.4ms | Allocations: 76627)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:15:43 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 21.7ms | Allocations: 3429)
Rendered comments/_form.html.erb (Duration: 1.4ms | Allocations: 763)
Comment Load (5.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (3.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 20.4ms | Allocations: 1568)
Rendered products/show.html.erb within layouts/application (Duration: 44.2ms | Allocations: 6027)
Rendered layout layouts/application.html.erb (Duration: 64.9ms | Allocations: 13724)

Completed 200 OK in 80ms (Views: 55.3ms | ActiveRecord: 11.7ms | Allocations: 15825)

Started POST “/products/2/comments” for 127.0.0.1 at 2022-07-17 03:15:46 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"My comment", "rate"=>"0"}, "commit"=>"Add comment", "product_id"=>"2"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:39:in `set_commentable'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:10:in `create'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/comments_controller.rb:13:in `create'
Comment Create (0.5ms)  INSERT INTO "comments" ("body", "rate", "user_id", "commentable_type", "commentable_id", "created_at", "updated_at", "approved") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["body", "My comment"], ["rate", 0], ["user_id", 4], ["commentable_type", "Product"], ["commentable_id", 2], ["created_at", "2022-07-17 08:15:46.919007"], ["updated_at", "2022-07-17 08:15:46.919007"], ["approved", false]]
↳ app/controllers/comments_controller.rb:13:in `create'
TRANSACTION (20.3ms)  COMMIT
↳ app/controllers/comments_controller.rb:13:in `create'

Redirected to localhost:3000/products/2 Completed 302 Found in 43ms (ActiveRecord: 21.6ms | Allocations: 3824)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:15:46 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"2"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 3429)
Rendered comments/_form.html.erb (Duration: 1.5ms | Allocations: 763)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (1.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 10.3ms | Allocations: 2398)
Rendered products/show.html.erb within layouts/application (Duration: 29.1ms | Allocations: 6860)
Rendered layout layouts/application.html.erb (Duration: 49.4ms | Allocations: 14613)

Completed 200 OK in 70ms (Views: 48.0ms | ActiveRecord: 4.9ms | Allocations: 16753)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:15:48 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 15.9ms | Allocations: 8563)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.2ms | Allocations: 3467)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 2632)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2704)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 3421)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 3426)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 3426)
Rendered products/index.html.erb within layouts/application (Duration: 239.9ms | Allocations: 67175)
Rendered layout layouts/application.html.erb (Duration: 253.8ms | Allocations: 74928)

Completed 200 OK in 272ms (Views: 237.6ms | ActiveRecord: 18.9ms | Allocations: 76567)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-17 03:15:52 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"5"}, "commit"=>"Add to Cart"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 2], ["product_id", 4], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:51:in `new_or_existing_product'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:53:in `new_or_existing_product'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Create (5.5ms)  INSERT INTO "order_lines" ("order_id", "product_id", "quantity", "total", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["order_id", 2], ["product_id", 4], ["quantity", 5], ["total", "60.0"], ["created_at", "2022-07-17 08:15:52.643775"], ["updated_at", "2022-07-17 08:15:52.643775"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (11.6ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (0.2ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.3ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "60.0"], ["updated_at", "2022-07-17 08:15:52.669359"], ["id", 2]]
↳ app/controllers/order_lines_controller.rb:12:in `create'
TRANSACTION (3.4ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:12:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 66ms (ActiveRecord: 22.3ms | Allocations: 10600)

Started GET “/cart” for 127.0.0.1 at 2022-07-17 03:15:52 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.4ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 2], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 22.4ms | Allocations: 6244)
Rendered layout layouts/application.html.erb (Duration: 39.4ms | Allocations: 14238)

Completed 200 OK in 50ms (Views: 39.4ms | ActiveRecord: 2.1ms | Allocations: 17324)

Started PATCH “/order_lines/1” for 127.0.0.1 at 2022-07-17 03:15:55 -0500 Processing by OrderLinesController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"8"}, "commit"=>"Update", "id"=>"1"}
Order Load (2.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:60:in `set_order_line'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:60:in `set_order_line'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
TRANSACTION (1.4ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:29:in `update'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
OrderLine Update (2.2ms)  UPDATE "order_lines" SET "quantity" = $1, "total" = $2, "updated_at" = $3 WHERE "order_lines"."id" = $4  [["quantity", 8], ["total", "96.0"], ["updated_at", "2022-07-17 08:15:55.150399"], ["id", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
OrderLine Load (1.9ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/models/order.rb:31:in `set_total'
Order Update (1.7ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "96.0"], ["updated_at", "2022-07-17 08:15:55.160885"], ["id", 2]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (1.3ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:29:in `update'

Redirected to localhost:3000/cart Completed 302 Found in 57ms (ActiveRecord: 11.2ms | Allocations: 9354)

Started GET “/cart” for 127.0.0.1 at 2022-07-17 03:15:55 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.7ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 2], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 26.9ms | Allocations: 5179)
Rendered layout layouts/application.html.erb (Duration: 41.4ms | Allocations: 12941)

Completed 200 OK in 66ms (Views: 40.2ms | ActiveRecord: 2.4ms | Allocations: 15300)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:15:56 -0500 Processing by ProductsController#index as HTML

Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.4ms | Allocations: 8584)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.2ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.8ms | Allocations: 3475)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2632)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2632)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2632)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.9ms | Allocations: 2632)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2632)
Tag Load (3.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 2704)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.7ms | Allocations: 2632)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.4ms | Allocations: 2632)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.6ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2632)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 2632)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (1.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 25.2ms | Allocations: 3421)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (5.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 17.4ms | Allocations: 3426)
Tag Load (3.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.8ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 3426)
Rendered products/index.html.erb within layouts/application (Duration: 297.8ms | Allocations: 67209)
Rendered layout layouts/application.html.erb (Duration: 318.8ms | Allocations: 74946)

Completed 200 OK in 330ms (Views: 257.3ms | ActiveRecord: 63.3ms | Allocations: 76621)

Started GET “/products/5” for 127.0.0.1 at 2022-07-17 03:15:57 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"5"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.4ms | Allocations: 3429)
Rendered comments/_form.html.erb (Duration: 2.6ms | Allocations: 772)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 5], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 3.7ms | Allocations: 759)
Rendered products/show.html.erb within layouts/application (Duration: 30.2ms | Allocations: 5228)
Rendered layout layouts/application.html.erb (Duration: 47.2ms | Allocations: 12976)

Completed 200 OK in 62ms (Views: 47.1ms | ActiveRecord: 3.5ms | Allocations: 15100)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-17 03:15:59 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"5", "quantity"=>"5"}, "commit"=>"Add to Cart"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (1.0ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 2], ["product_id", 5], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:51:in `new_or_existing_product'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:53:in `new_or_existing_product'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Create (4.3ms)  INSERT INTO "order_lines" ("order_id", "product_id", "quantity", "total", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["order_id", 2], ["product_id", 5], ["quantity", 5], ["total", "90.0"], ["created_at", "2022-07-17 08:15:59.664070"], ["updated_at", "2022-07-17 08:15:59.664070"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (43.5ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (0.2ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.3ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "186.0"], ["updated_at", "2022-07-17 08:15:59.719125"], ["id", 2]]
↳ app/controllers/order_lines_controller.rb:12:in `create'
TRANSACTION (9.7ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:12:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 100ms (ActiveRecord: 60.1ms | Allocations: 8402)

Started GET “/cart” for 127.0.0.1 at 2022-07-17 03:15:59 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (2.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
Product Load (3.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (2.0ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 2], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 35.9ms | Allocations: 6906)
Rendered layout layouts/application.html.erb (Duration: 52.1ms | Allocations: 14666)

Completed 200 OK in 59ms (Views: 44.0ms | ActiveRecord: 9.0ms | Allocations: 17005)

Started PATCH “/orders/2” for 127.0.0.1 at 2022-07-17 03:16:01 -0500 Processing by OrdersController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"2"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:48:in `set_order'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:48:in `set_order'
TRANSACTION (0.8ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.7ms)  UPDATE "orders" SET "date" = $1, "status" = $2, "updated_at" = $3 WHERE "orders"."id" = $4  [["date", "2022-07-17"], ["status", 1], ["updated_at", "2022-07-17 08:16:01.534283"], ["id", 2]]
↳ app/controllers/orders_controller.rb:32:in `update'
TRANSACTION (6.0ms)  COMMIT
↳ app/controllers/orders_controller.rb:32:in `update'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:53:in `block in update_stock'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'
Product Exists? (1.0ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 AND "products"."id" != $2 LIMIT $3  [["name", "takis"], ["id", 4], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'
Product Update (1.1ms)  UPDATE "products" SET "stock" = $1, "updated_at" = $2 WHERE "products"."id" = $3  [["stock", 22], ["updated_at", "2022-07-17 08:16:01.556642"], ["id", 4]]
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'
TRANSACTION (10.0ms)  COMMIT
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'
Product Load (0.9ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:53:in `block in update_stock'
TRANSACTION (3.4ms)  BEGIN
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 AND "products"."id" != $2 LIMIT $3  [["name", "ruffles"], ["id", 5], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'
Product Update (0.9ms)  UPDATE "products" SET "stock" = $1, "updated_at" = $2 WHERE "products"."id" = $3  [["stock", 55], ["updated_at", "2022-07-17 08:16:01.588350"], ["id", 5]]
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'
TRANSACTION (18.5ms)  COMMIT
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'

Redirected to localhost:3000/products Completed 302 Found in 106ms (ActiveRecord: 45.4ms | Allocations: 12220)

Started GET “/products” for 127.0.0.1 at 2022-07-17 03:16:01 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.2ms | Allocations: 8629)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.1ms | Allocations: 3577)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.2ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2704)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2632)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (1.1ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 3422)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.6ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 3426)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 225.3ms | Allocations: 67365)
Rendered layout layouts/application.html.erb (Duration: 243.2ms | Allocations: 75221)

Completed 200 OK in 250ms (Views: 223.8ms | ActiveRecord: 20.4ms | Allocations: 76677)

Started GET “/orders” for 127.0.0.1 at 2022-07-17 03:16:02 -0500 Processing by OrdersController#index as HTML

User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:10:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 4], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 17.9ms | Allocations: 2934)
Rendered orders/index.html.erb within layouts/application (Duration: 24.3ms | Allocations: 3975)
Rendered layout layouts/application.html.erb (Duration: 43.1ms | Allocations: 11721)

Completed 200 OK in 53ms (Views: 42.9ms | ActiveRecord: 1.8ms | Allocations: 13093)

Started GET “/orders/2” for 127.0.0.1 at 2022-07-17 03:16:03 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:15:in `show'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (2.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 20.5ms | Allocations: 2565)
User Load (1.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/show.html.erb:4
Rendered comments/_form.html.erb (Duration: 5.7ms | Allocations: 782)
Comment Load (1.6ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Order"]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 10.5ms | Allocations: 2273)
Rendered orders/show.html.erb within layouts/application (Duration: 48.9ms | Allocations: 7077)
Rendered layout layouts/application.html.erb (Duration: 78.9ms | Allocations: 14825)

Completed 200 OK in 83ms (Views: 73.8ms | ActiveRecord: 6.4ms | Allocations: 15674)

Started POST “/orders/2/comments” for 127.0.0.1 at 2022-07-17 03:16:08 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"Order comment", "rate"=>"3"}, "commit"=>"Add comment", "order_id"=>"2"}
Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:41:in `set_commentable'
User Load (2.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:10:in `create'
TRANSACTION (1.3ms)  BEGIN
↳ app/controllers/comments_controller.rb:13:in `create'
Comment Create (2.3ms)  INSERT INTO "comments" ("body", "rate", "user_id", "commentable_type", "commentable_id", "created_at", "updated_at", "approved") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["body", "Order comment"], ["rate", 3], ["user_id", 4], ["commentable_type", "Order"], ["commentable_id", 2], ["created_at", "2022-07-17 08:16:08.498095"], ["updated_at", "2022-07-17 08:16:08.498095"], ["approved", false]]
↳ app/controllers/comments_controller.rb:13:in `create'
TRANSACTION (15.3ms)  COMMIT
↳ app/controllers/comments_controller.rb:13:in `create'

Redirected to localhost:3000/orders/2 Completed 302 Found in 44ms (ActiveRecord: 22.2ms | Allocations: 3904)

Started GET “/orders/2” for 127.0.0.1 at 2022-07-17 03:16:08 -0500 Processing by OrdersController#show as TURBO_STREAM

Parameters: {"id"=>"2"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:15:in `show'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (1.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 10.1ms | Allocations: 2565)
User Load (2.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/show.html.erb:4
Rendered comments/_form.html.erb (Duration: 3.5ms | Allocations: 764)
Comment Load (3.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Order"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 12.7ms | Allocations: 1597)
Rendered orders/show.html.erb within layouts/application (Duration: 33.4ms | Allocations: 6188)
Rendered layout layouts/application.html.erb (Duration: 46.5ms | Allocations: 13941)

Completed 200 OK in 49ms (Views: 39.0ms | ActiveRecord: 8.4ms | Allocations: 14737)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:16:11 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 13.5ms | Allocations: 8568)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (2.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.2ms | Allocations: 3469)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 2632)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.5ms | Allocations: 2633)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2704)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 3422)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 256.7ms | Allocations: 67191)
Rendered layout layouts/application.html.erb (Duration: 279.7ms | Allocations: 74944)

Completed 200 OK in 321ms (Views: 265.6ms | ActiveRecord: 20.0ms | Allocations: 76279)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:18:58 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 54.1ms | Allocations: 17065)
Rendered comments/_form.html.erb (Duration: 12.1ms | Allocations: 3165)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 16.8ms | Allocations: 5596)
Rendered products/show.html.erb within layouts/application (Duration: 87.9ms | Allocations: 27302)
Rendered layout layouts/application.html.erb (Duration: 122.3ms | Allocations: 50107)

Completed 200 OK in 198ms (Views: 109.5ms | ActiveRecord: 31.6ms | Allocations: 67495)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:19:00 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (2.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.9ms | Allocations: 3497)
Rendered comments/_form.html.erb (Duration: 4.1ms | Allocations: 763)
Comment Load (0.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 12.9ms | Allocations: 2420)
Rendered products/show.html.erb within layouts/application (Duration: 38.2ms | Allocations: 6930)
Rendered layout layouts/application.html.erb (Duration: 61.5ms | Allocations: 14684)

Completed 200 OK in 73ms (Views: 56.7ms | ActiveRecord: 5.8ms | Allocations: 16604)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:19:03 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 16.2ms | Allocations: 9590)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.2ms | Allocations: 3658)
Tag Load (3.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 2632)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.9ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 21.8ms | Allocations: 2632)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.1ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.1ms | Allocations: 2704)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.0ms | Allocations: 2632)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 55.9ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 40.3ms | Allocations: 2637)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 24.2ms | Allocations: 2632)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 34.9ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.7ms | Allocations: 2633)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 122.1ms | Allocations: 5129)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 20.8ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 3426)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 576.6ms | Allocations: 70284)
Rendered layout layouts/application.html.erb (Duration: 598.1ms | Allocations: 78147)

Completed 200 OK in 605ms (Views: 559.7ms | ActiveRecord: 40.6ms | Allocations: 79674)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:19:05 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (2.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (2.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.0ms | Allocations: 3432)
Rendered comments/_form.html.erb (Duration: 6.0ms | Allocations: 772)
Comment Load (2.7ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 15.8ms | Allocations: 2454)
Rendered products/show.html.erb within layouts/application (Duration: 46.3ms | Allocations: 6933)
Rendered layout layouts/application.html.erb (Duration: 69.8ms | Allocations: 14631)

Completed 200 OK in 84ms (Views: 64.2ms | ActiveRecord: 9.3ms | Allocations: 16526)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:19:06 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (3.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 17.9ms | Allocations: 8568)
Product Exists? (2.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 24.1ms | Allocations: 3469)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (5.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.5ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2632)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2632)
Tag Load (3.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (5.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.5ms | Allocations: 2704)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 28.7ms | Allocations: 2632)
Tag Load (3.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.1ms | Allocations: 2658)
Tag Load (4.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 21.0ms | Allocations: 2632)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.4ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2632)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 18.3ms | Allocations: 3422)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.8ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 3426)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.9ms | Allocations: 3426)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 377.4ms | Allocations: 67295)
Rendered layout layouts/application.html.erb (Duration: 397.7ms | Allocations: 75048)

Completed 200 OK in 404ms (Views: 343.5ms | ActiveRecord: 55.6ms | Allocations: 76393)

Started GET “/products/1” for 127.0.0.1 at 2022-07-17 03:19:18 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (1.9ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (3.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.2ms | Allocations: 3432)
Rendered comments/_form.html.erb (Duration: 2.4ms | Allocations: 763)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 6.7ms | Allocations: 1579)
Rendered products/show.html.erb within layouts/application (Duration: 27.2ms | Allocations: 6041)
Rendered layout layouts/application.html.erb (Duration: 49.3ms | Allocations: 13738)

Completed 200 OK in 68ms (Views: 47.8ms | ActiveRecord: 7.8ms | Allocations: 15565)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:19:20 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 37.3ms | Allocations: 8568)
Product Exists? (0.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (3.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (5.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 29.7ms | Allocations: 3469)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 2632)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2632)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2632)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 2655)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 2704)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2632)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (1.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.9ms | Allocations: 3422)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 2632)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 365.8ms | Allocations: 67211)
Rendered layout layouts/application.html.erb (Duration: 382.8ms | Allocations: 74964)

Completed 200 OK in 398ms (Views: 334.6ms | ActiveRecord: 51.1ms | Allocations: 76291)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:19:21 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (3.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (4.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 25.1ms | Allocations: 3432)
Rendered comments/_form.html.erb (Duration: 1.9ms | Allocations: 763)
Comment Load (2.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 15.9ms | Allocations: 2420)
Rendered products/show.html.erb within layouts/application (Duration: 47.2ms | Allocations: 6882)
Rendered layout layouts/application.html.erb (Duration: 67.9ms | Allocations: 14579)

Completed 200 OK in 81ms (Views: 61.3ms | ActiveRecord: 11.3ms | Allocations: 16400)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:21:04 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.8ms | Allocations: 8568)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (3.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.7ms | Allocations: 3469)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2632)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2632)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2632)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2632)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 2704)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.8ms | Allocations: 2632)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 2632)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.0ms | Allocations: 2632)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 2632)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 17.7ms | Allocations: 3422)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 3426)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 3426)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 324.9ms | Allocations: 67187)
Rendered layout layouts/application.html.erb (Duration: 343.7ms | Allocations: 74940)

Completed 200 OK in 359ms (Views: 307.0ms | ActiveRecord: 38.9ms | Allocations: 76285)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:21:07 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.9ms | Allocations: 3432)
Rendered comments/_form.html.erb (Duration: 2.1ms | Allocations: 763)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (1.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 21.3ms | Allocations: 2420)
Rendered products/show.html.erb within layouts/application (Duration: 41.7ms | Allocations: 6882)
Rendered layout layouts/application.html.erb (Duration: 61.4ms | Allocations: 14579)

Completed 200 OK in 79ms (Views: 58.4ms | ActiveRecord: 4.5ms | Allocations: 16394)

Started POST “/products/2/comments” for 127.0.0.1 at 2022-07-17 03:21:10 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"Other comment", "rate"=>"0"}, "commit"=>"Add comment", "product_id"=>"2"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:39:in `set_commentable'
User Load (1.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:10:in `create'
TRANSACTION (3.2ms)  BEGIN
↳ app/controllers/comments_controller.rb:13:in `create'
Comment Create (0.6ms)  INSERT INTO "comments" ("body", "rate", "user_id", "commentable_type", "commentable_id", "created_at", "updated_at", "approved") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["body", "Other comment"], ["rate", 0], ["user_id", 4], ["commentable_type", "Product"], ["commentable_id", 2], ["created_at", "2022-07-17 08:21:10.970077"], ["updated_at", "2022-07-17 08:21:10.970077"], ["approved", false]]
↳ app/controllers/comments_controller.rb:13:in `create'
TRANSACTION (8.9ms)  COMMIT
↳ app/controllers/comments_controller.rb:13:in `create'

Redirected to localhost:3000/products/2 Completed 302 Found in 33ms (ActiveRecord: 14.3ms | Allocations: 4643)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:21:11 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"2"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.6ms | Allocations: 3560)
Rendered comments/_form.html.erb (Duration: 2.4ms | Allocations: 772)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 16.6ms | Allocations: 3175)
Rendered products/show.html.erb within layouts/application (Duration: 35.2ms | Allocations: 7786)
Rendered layout layouts/application.html.erb (Duration: 53.5ms | Allocations: 15585)

Completed 200 OK in 65ms (Views: 53.0ms | ActiveRecord: 2.4ms | Allocations: 17471)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-17 03:21:12 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 11ms (ActiveRecord: 0.6ms | Allocations: 2586)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:21:12 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.4ms | Allocations: 8626)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1995)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1837)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1818)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 138.6ms | Allocations: 47936)
Rendered layout layouts/application.html.erb (Duration: 153.7ms | Allocations: 55697)

Completed 200 OK in 160ms (Views: 143.3ms | ActiveRecord: 11.4ms | Allocations: 57115)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:21:13 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 0.4ms | Allocations: 164)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 9.7ms | Allocations: 1556)
Rendered layout layouts/application.html.erb (Duration: 32.5ms | Allocations: 9475)

Completed 200 OK in 40ms (Views: 37.2ms | ActiveRecord: 0.0ms | Allocations: 10813)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:21:19 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"test1@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.9ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2 LIMIT $3  [["user_id", 3], ["status", 0], ["LIMIT", 1]]
↳ app/controllers/sessions_controller.rb:12:in `after_login'
TRANSACTION (0.2ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
TRANSACTION (0.3ms)  COMMIT
↳ app/controllers/sessions_controller.rb:15:in `after_login'

Completed 302 Found in 263ms (ActiveRecord: 3.3ms | Allocations: 6916)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:21:20 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 7.9ms | Allocations: 8511)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 3516)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2704)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (5.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2632)
Tag Load (4.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 3422)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 3426)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (1.9ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 3426)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 201.9ms | Allocations: 67183)
Rendered layout layouts/application.html.erb (Duration: 236.2ms | Allocations: 74937)

Completed 200 OK in 244ms (Views: 200.0ms | ActiveRecord: 37.3ms | Allocations: 77163)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:21:21 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (3.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.6ms | Allocations: 3429)
Rendered comments/_form.html.erb (Duration: 2.7ms | Allocations: 772)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 12.6ms | Allocations: 3176)
Rendered products/show.html.erb within layouts/application (Duration: 45.4ms | Allocations: 7645)
Rendered layout layouts/application.html.erb (Duration: 66.8ms | Allocations: 15342)

Completed 200 OK in 89ms (Views: 62.3ms | ActiveRecord: 7.2ms | Allocations: 17471)

Comment Load (0.6ms)  SELECT "comments".* FROM "comments"

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:22:17 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (1.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (2.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 116.5ms | Allocations: 17056)
Rendered comments/_form.html.erb (Duration: 20.5ms | Allocations: 3165)
Comment Load (0.2ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 26.6ms | Allocations: 6335)
Rendered products/show.html.erb within layouts/application (Duration: 174.4ms | Allocations: 28006)
Rendered layout layouts/application.html.erb (Duration: 212.4ms | Allocations: 50811)

Completed 200 OK in 340ms (Views: 193.4ms | ActiveRecord: 40.8ms | Allocations: 68965)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:22:34 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 68.2ms | Allocations: 17037)
Rendered comments/_form.html.erb (Duration: 13.8ms | Allocations: 3165)
Comment Load (0.2ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 18.9ms | Allocations: 6336)
Rendered products/show.html.erb within layouts/application (Duration: 108.1ms | Allocations: 27982)
Rendered layout layouts/application.html.erb (Duration: 143.6ms | Allocations: 50682)

Completed 200 OK in 224ms (Views: 129.5ms | ActiveRecord: 31.6ms | Allocations: 68735)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:22:37 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (1.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.9ms | Allocations: 3497)
Rendered comments/_form.html.erb (Duration: 2.9ms | Allocations: 763)
Comment Load (0.2ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 23.4ms | Allocations: 3158)
Rendered products/show.html.erb within layouts/application (Duration: 50.5ms | Allocations: 7668)
Rendered layout layouts/application.html.erb (Duration: 66.2ms | Allocations: 15366)

Completed 200 OK in 85ms (Views: 64.9ms | ActiveRecord: 4.6ms | Allocations: 17605)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:24:52 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 67.9ms | Allocations: 17603)
Rendered comments/_form.html.erb (Duration: 12.9ms | Allocations: 3430)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 18.0ms | Allocations: 6564)
Rendered products/show.html.erb within layouts/application (Duration: 128.5ms | Allocations: 29795)
Rendered layout layouts/application.html.erb (Duration: 167.9ms | Allocations: 53148)

Completed 200 OK in 242ms (Views: 153.7ms | ActiveRecord: 34.1ms | Allocations: 71489)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:24:54 -0500 Processing by ProductsController#index as HTML

Order Load (1.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.4ms | Allocations: 9996)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 3664)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2636)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.8ms | Allocations: 2704)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 21.5ms | Allocations: 5107)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.7ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (1.7ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 226.8ms | Allocations: 71079)
Rendered layout layouts/application.html.erb (Duration: 240.1ms | Allocations: 78888)

Completed 200 OK in 249ms (Views: 222.7ms | ActiveRecord: 19.5ms | Allocations: 80864)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:24:55 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 3429)
Rendered comments/_form.html.erb (Duration: 1.7ms | Allocations: 772)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 14.7ms | Allocations: 3199)
Rendered products/show.html.erb within layouts/application (Duration: 33.0ms | Allocations: 7809)
Rendered layout layouts/application.html.erb (Duration: 48.9ms | Allocations: 15560)

Completed 200 OK in 69ms (Views: 47.7ms | ActiveRecord: 3.0ms | Allocations: 17760)

Product Load (0.4ms)  SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT $1  [["LIMIT", 1]]
Product Load (0.4ms)  SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT $1  [["LIMIT", 1]]
Comment Load (0.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:25:41 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 27.2ms | Allocations: 4439)
Rendered comments/_form.html.erb (Duration: 4.2ms | Allocations: 995)
Comment Load (1.1ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 20.9ms | Allocations: 3426)
Rendered products/show.html.erb within layouts/application (Duration: 59.2ms | Allocations: 9915)
Rendered layout layouts/application.html.erb (Duration: 80.8ms | Allocations: 18363)

Completed 200 OK in 99ms (Views: 81.0ms | ActiveRecord: 4.9ms | Allocations: 21052)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:25:43 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.2ms | Allocations: 8989)
Product Exists? (1.0ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (4.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 3467)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2632)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2704)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 3425)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 3426)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2632)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 248.1ms | Allocations: 67993)
Rendered layout layouts/application.html.erb (Duration: 273.1ms | Allocations: 75740)

Completed 200 OK in 289ms (Views: 249.6ms | ActiveRecord: 25.5ms | Allocations: 77524)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:25:45 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (2.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.9ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 3429)
Rendered comments/_form.html.erb (Duration: 2.9ms | Allocations: 763)
Comment Load (0.2ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 12.9ms | Allocations: 3061)
Rendered products/show.html.erb within layouts/application (Duration: 33.6ms | Allocations: 7790)
Rendered layout layouts/application.html.erb (Duration: 50.3ms | Allocations: 15496)

Completed 200 OK in 70ms (Views: 48.6ms | ActiveRecord: 5.7ms | Allocations: 17610)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:26:22 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.3ms | Allocations: 4439)
Rendered comments/_form.html.erb (Duration: 3.0ms | Allocations: 995)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:3
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:5
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:5
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:5
Rendered comments/_comments.html.erb (Duration: 13.3ms | Allocations: 3446)
Rendered products/show.html.erb within layouts/application (Duration: 42.0ms | Allocations: 9856)
Rendered layout layouts/application.html.erb (Duration: 61.2ms | Allocations: 18303)

Completed 200 OK in 71ms (Views: 61.6ms | ActiveRecord: 2.0ms | Allocations: 21010)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:26:23 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.8ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.8ms | Allocations: 8993)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.9ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 3467)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (15.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 28.1ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2704)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 24.4ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 3425)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 19.6ms | Allocations: 3426)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 17.4ms | Allocations: 3426)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.4ms | Allocations: 2632)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2633)
Rendered products/index.html.erb within layouts/application (Duration: 305.9ms | Allocations: 67993)
Rendered layout layouts/application.html.erb (Duration: 325.9ms | Allocations: 75746)

Completed 200 OK in 334ms (Views: 287.8ms | ActiveRecord: 39.3ms | Allocations: 77534)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:26:24 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (2.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.1ms | Allocations: 3429)
Rendered comments/_form.html.erb (Duration: 5.0ms | Allocations: 763)
Comment Load (1.2ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:3
User Load (1.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:5
User Load (1.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:5
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:5
Rendered comments/_comments.html.erb (Duration: 21.6ms | Allocations: 3063)
Rendered products/show.html.erb within layouts/application (Duration: 54.5ms | Allocations: 7789)
Rendered layout layouts/application.html.erb (Duration: 70.7ms | Allocations: 15495)

Completed 200 OK in 101ms (Views: 64.1ms | ActiveRecord: 10.0ms | Allocations: 17620)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:26:55 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.2ms | Allocations: 4439)
Rendered comments/_form.html.erb (Duration: 3.3ms | Allocations: 995)
Comment Load (0.9ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 20.2ms | Allocations: 3530)
Rendered products/show.html.erb within layouts/application (Duration: 45.4ms | Allocations: 9674)
Rendered layout layouts/application.html.erb (Duration: 64.3ms | Allocations: 18121)

Completed 200 OK in 85ms (Views: 67.1ms | ActiveRecord: 3.8ms | Allocations: 20801)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:26:56 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.6ms | Allocations: 8990)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 3467)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2704)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 3425)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.7ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 252.1ms | Allocations: 67989)
Rendered layout layouts/application.html.erb (Duration: 273.0ms | Allocations: 75743)

Completed 200 OK in 284ms (Views: 258.2ms | ActiveRecord: 17.2ms | Allocations: 77534)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:26:57 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (5.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 21.6ms | Allocations: 3429)
Rendered comments/_form.html.erb (Duration: 2.1ms | Allocations: 763)
Comment Load (0.7ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 18.6ms | Allocations: 3165)
Rendered products/show.html.erb within layouts/application (Duration: 45.2ms | Allocations: 7633)
Rendered layout layouts/application.html.erb (Duration: 61.5ms | Allocations: 15331)

Completed 200 OK in 80ms (Views: 53.0ms | ActiveRecord: 11.2ms | Allocations: 17450)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:27:53 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.8ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 70.9ms | Allocations: 17731)
Rendered comments/_form.html.erb (Duration: 14.6ms | Allocations: 3408)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 22.9ms | Allocations: 5810)
Rendered products/show.html.erb within layouts/application (Duration: 118.3ms | Allocations: 29849)
Rendered layout layouts/application.html.erb (Duration: 159.6ms | Allocations: 53201)

Completed 200 OK in 239ms (Views: 144.7ms | ActiveRecord: 29.2ms | Allocations: 71664)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:27:55 -0500 Processing by ProductsController#index as HTML

Order Load (4.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (4.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 22.7ms | Allocations: 10000)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.0ms | Allocations: 3664)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 2637)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 2634)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2632)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 41.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 2704)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.9ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 24.5ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2632)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 22.5ms | Allocations: 5126)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.8ms | Allocations: 3426)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 18.5ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 369.7ms | Allocations: 71105)
Rendered layout layouts/application.html.erb (Duration: 387.6ms | Allocations: 78969)

Completed 200 OK in 407ms (Views: 353.5ms | ActiveRecord: 40.8ms | Allocations: 80946)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:27:56 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (2.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (2.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.0ms | Allocations: 3429)
Rendered comments/_form.html.erb (Duration: 3.5ms | Allocations: 772)
Comment Load (2.0ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 24.4ms | Allocations: 3095)
Rendered products/show.html.erb within layouts/application (Duration: 51.7ms | Allocations: 7845)
Rendered layout layouts/application.html.erb (Duration: 74.0ms | Allocations: 15542)

Completed 200 OK in 91ms (Views: 71.1ms | ActiveRecord: 10.3ms | Allocations: 17733)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:27:58 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.9ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.3ms | Allocations: 8564)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (4.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 21.8ms | Allocations: 3467)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2632)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2704)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2632)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 3421)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 3426)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 3426)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 256.4ms | Allocations: 67181)
Rendered layout layouts/application.html.erb (Duration: 276.5ms | Allocations: 74934)

Completed 200 OK in 291ms (Views: 247.1ms | ActiveRecord: 30.5ms | Allocations: 76567)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:29:13 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 29.5ms | Allocations: 12664)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 57.9ms | Allocations: 13976)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.3ms | Allocations: 2850)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.7ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 2632)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 2632)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2632)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2704)
Tag Load (5.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 2632)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2632)
Tag Load (4.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.6ms | Allocations: 2632)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2632)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 22.2ms | Allocations: 5109)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 15.4ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.7ms | Allocations: 3426)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 398.3ms | Allocations: 85832)
Rendered layout layouts/application.html.erb (Duration: 460.1ms | Allocations: 108632)

Completed 200 OK in 523ms (Views: 398.6ms | ActiveRecord: 78.4ms | Allocations: 123671)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:29:16 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (3.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:17:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2904)
Rendered comments/_form.html.erb (Duration: 8.4ms | Allocations: 2497)
Comment Load (1.6ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (2.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 32.9ms | Allocations: 5471)
Rendered products/show.html.erb within layouts/application (Duration: 58.0ms | Allocations: 11173)
Rendered layout layouts/application.html.erb (Duration: 83.8ms | Allocations: 18992)

Completed 200 OK in 123ms (Views: 74.4ms | ActiveRecord: 15.9ms | Allocations: 25366)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:29:18 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:17:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 2604)
Rendered comments/_form.html.erb (Duration: 2.9ms | Allocations: 763)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 13.6ms | Allocations: 3061)
Rendered products/show.html.erb within layouts/application (Duration: 29.1ms | Allocations: 6679)
Rendered layout layouts/application.html.erb (Duration: 45.2ms | Allocations: 14430)

Completed 200 OK in 68ms (Views: 44.3ms | ActiveRecord: 3.6ms | Allocations: 17665)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:29:34 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'

Completed 500 Internal Server Error in 72ms (ActiveRecord: 12.8ms | Allocations: 18787)

NoMethodError (undefined method ‘comments’ for nil:NilClass

@product = Product.find(params[:id]).policy_scope(@product.comments)
                                                          ^^^^^^^^^):

app/controllers/products_controller.rb:16:in ‘show’ Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:29:52 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 56.4ms | Allocations: 17057)
Rendered comments/_form.html.erb (Duration: 13.8ms | Allocations: 3165)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 18.9ms | Allocations: 5486)
Rendered products/show.html.erb within layouts/application (Duration: 96.6ms | Allocations: 28163)
Rendered layout layouts/application.html.erb (Duration: 142.5ms | Allocations: 50968)

Completed 200 OK in 228ms (Views: 128.8ms | ActiveRecord: 31.9ms | Allocations: 69034)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:35:54 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.5ms | Allocations: 9586)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.8ms | Allocations: 3668)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2632)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 2632)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 2632)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.3ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2704)
Tag Load (5.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 2632)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 2632)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.9ms | Allocations: 2632)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.4ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 20.4ms | Allocations: 5109)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (1.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.5ms | Allocations: 3426)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.9ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 3426)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 318.5ms | Allocations: 70284)
Rendered layout layouts/application.html.erb (Duration: 341.6ms | Allocations: 78091)

Completed 200 OK in 381ms (Views: 290.8ms | ActiveRecord: 59.1ms | Allocations: 88964)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-17 03:35:55 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 12ms (ActiveRecord: 0.3ms | Allocations: 2611)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:35:55 -0500 Processing by ProductsController#index as HTML

Order Load (2.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 21.8ms | Allocations: 8626)
Product Exists? (3.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 1995)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 228.2ms | Allocations: 47945)
Rendered layout layouts/application.html.erb (Duration: 241.6ms | Allocations: 55706)

Completed 200 OK in 254ms (Views: 226.5ms | ActiveRecord: 18.9ms | Allocations: 57180)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:35:56 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 2.4ms | Allocations: 565)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 12.8ms | Allocations: 2380)
Rendered layout layouts/application.html.erb (Duration: 34.8ms | Allocations: 10299)

Completed 200 OK in 40ms (Views: 38.8ms | ActiveRecord: 0.0ms | Allocations: 11951)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:36:05 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"support@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "support@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 259ms (ActiveRecord: 0.3ms | Allocations: 2995)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:36:05 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.0ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 28.1ms | Allocations: 8585)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2102)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1228)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1246)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1228)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1228)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1228)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1228)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1227)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1227)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1227)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1228)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1228)
Rendered products/index.html.erb within layouts/application (Duration: 178.0ms | Allocations: 36779)
Rendered layout layouts/application.html.erb (Duration: 195.6ms | Allocations: 44508)

Completed 200 OK in 206ms (Views: 183.3ms | ActiveRecord: 15.6ms | Allocations: 45951)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:36:07 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 15.1ms | Allocations: 2031)
Comment Load (1.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 25.1ms | Allocations: 3836)
Rendered products/show.html.erb within layouts/application (Duration: 42.3ms | Allocations: 6301)
Rendered layout layouts/application.html.erb (Duration: 65.1ms | Allocations: 13977)

Completed 200 OK in 72ms (Views: 62.1ms | ActiveRecord: 4.2ms | Allocations: 15823)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:36:09 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 19.7ms | Allocations: 8567)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.9ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (3.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 2067)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 1228)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1229)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1228)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 1228)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1228)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1228)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1228)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1246)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1228)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1228)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1235)
Tag Load (3.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1228)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1227)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1227)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1227)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1228)
Rendered products/index.html.erb within layouts/application (Duration: 203.4ms | Allocations: 36700)
Rendered layout layouts/application.html.erb (Duration: 220.8ms | Allocations: 44411)

Completed 200 OK in 229ms (Views: 199.4ms | ActiveRecord: 23.2ms | Allocations: 45738)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-17 03:36:09 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 10ms (ActiveRecord: 0.3ms | Allocations: 1822)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:36:09 -0500 Processing by ProductsController#index as HTML

Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.2ms | Allocations: 8567)
Product Exists? (1.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1908)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1819)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1819)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1819)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 1837)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1819)
Tag Load (3.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 219.5ms | Allocations: 47777)
Rendered layout layouts/application.html.erb (Duration: 237.9ms | Allocations: 55437)

Completed 200 OK in 256ms (Views: 225.1ms | ActiveRecord: 19.9ms | Allocations: 56778)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:36:11 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 0.3ms | Allocations: 138)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 3.7ms | Allocations: 1284)
Rendered layout layouts/application.html.erb (Duration: 17.9ms | Allocations: 8964)

Completed 200 OK in 21ms (Views: 20.0ms | ActiveRecord: 0.0ms | Allocations: 9625)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 03:36:18 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"alvaro@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (5.8ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 254ms (ActiveRecord: 5.8ms | Allocations: 2410)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:36:18 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.0ms | Allocations: 8565)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2340)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 115.5ms | Allocations: 42060)
Rendered layout layouts/application.html.erb (Duration: 130.4ms | Allocations: 49725)

Completed 200 OK in 135ms (Views: 125.7ms | ActiveRecord: 6.1ms | Allocations: 51071)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 03:36:21 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (2.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 2298)
Comment Load (1.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (4.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 32.9ms | Allocations: 3924)
Rendered products/show.html.erb within layouts/application (Duration: 52.1ms | Allocations: 6604)
Rendered layout layouts/application.html.erb (Duration: 84.5ms | Allocations: 14282)

Completed 200 OK in 97ms (Views: 73.8ms | ActiveRecord: 13.3ms | Allocations: 16086)

Started GET “/” for 127.0.0.1 at 2022-07-17 03:36:23 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 21.2ms | Allocations: 8569)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 16.2ms | Allocations: 2333)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (3.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (3.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1493)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1493)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 220.5ms | Allocations: 42049)
Rendered layout layouts/application.html.erb (Duration: 246.3ms | Allocations: 49772)

Completed 200 OK in 262ms (Views: 230.5ms | ActiveRecord: 19.9ms | Allocations: 51113)

Started GET “/” for 127.0.0.1 at 2022-07-17 14:59:16 -0500

ActiveRecord::SchemaMigration Pluck (17.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Order Load (1.9ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.0ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 206.6ms | Allocations: 14282)
Product Exists? (1.0ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 714.4ms | Allocations: 286913)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 2063)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1819)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1818)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1818)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 1056.8ms | Allocations: 342983)
Rendered layout layouts/application.html.erb (Duration: 1381.9ms | Allocations: 398568)

Completed 200 OK in 1545ms (Views: 1356.8ms | ActiveRecord: 56.0ms | Allocations: 422234)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 14:59:20 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2030)
Comment Load (19.9ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (30.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 116.5ms | Allocations: 15452)
Rendered products/show.html.erb within layouts/application (Duration: 179.9ms | Allocations: 21094)
Rendered layout layouts/application.html.erb (Duration: 211.7ms | Allocations: 28890)

Completed 200 OK in 224ms (Views: 154.1ms | ActiveRecord: 59.3ms | Allocations: 31708)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 15:00:47 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (1.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2825)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 41.2ms | Allocations: 12155)
Rendered products/show.html.erb within layouts/application (Duration: 55.4ms | Allocations: 15859)
Rendered layout layouts/application.html.erb (Duration: 55.7ms | Allocations: 15954)

Completed 500 Internal Server Error in 79ms (ActiveRecord: 2.6ms | Allocations: 18487)

ActionView::Template::Error (unable to find scope ‘EnumeratorPolicy::Scope` for `#<Enumerator: [#<Comment id: 2, body: “New comment again”, rate: 3, user_id: 3, commentable_type: “Product”, commentable_id: 2, created_at: “2022-07-17 08:15:13.678020000 +0000”, updated_at: “2022-07-17 08:15:13.678020000 +0000”, approved: false>, #<Comment id: 3, body: “My comment”, rate: 0, user_id: 4, commentable_type: “Product”, commentable_id: 2, created_at: “2022-07-17 08:15:46.919007000 +0000”, updated_at: “2022-07-17 08:15:46.919007000 +0000”, approved: false>, #<Comment id: 5, body: “Other comment”, rate: 0, user_id: 4, commentable_type: “Product”, commentable_id: 2, created_at: “2022-07-17 08:21:10.970077000 +0000”, updated_at: “2022-07-17 08:21:10.970077000 +0000”, approved: false>]:each>`):

1: <div class="grid grid-cols-4 gap-2">
2:   <% policy_scope(commentable.comments.each) do |comment| %>
3:     <div class="flex flex-col gap-2">
4:       <p>Posted by: <%= comment.user.first_name %> </p>
5:       <p>Comment: <%= comment.body %></p>

app/views/comments/_comments.html.erb:2 app/views/products/show.html.erb:9 Started GET “/products/2” for 127.0.0.1 at 2022-07-17 15:01:48 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (2.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2821)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" IS NULL)  [["commentable_id", 2], ["commentable_type", "Product"], ["approved", true]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 3.8ms | Allocations: 1054)
Rendered products/show.html.erb within layouts/application (Duration: 20.5ms | Allocations: 4771)
Rendered layout layouts/application.html.erb (Duration: 41.9ms | Allocations: 13235)

Completed 200 OK in 64ms (Views: 46.4ms | ActiveRecord: 3.5ms | Allocations: 15885)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 15:01:52 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 2.0ms | Allocations: 728)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 28.8ms | Allocations: 3511)
Rendered layout layouts/application.html.erb (Duration: 58.9ms | Allocations: 11486)

Completed 200 OK in 72ms (Views: 66.5ms | ActiveRecord: 0.0ms | Allocations: 13356)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 15:02:00 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"test1@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (3.7ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2 LIMIT $3  [["user_id", 3], ["status", 0], ["LIMIT", 1]]
↳ app/controllers/sessions_controller.rb:12:in `after_login'
TRANSACTION (0.2ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (35.1ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
TRANSACTION (0.3ms)  COMMIT
↳ app/controllers/sessions_controller.rb:15:in `after_login'

Completed 302 Found in 341ms (ActiveRecord: 39.7ms | Allocations: 8836)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:02:00 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.2ms | Allocations: 8962)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (15.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 27.1ms | Allocations: 3682)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2632)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2632)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 2632)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2632)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2704)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2632)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2632)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2632)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2632)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (8.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 25.1ms | Allocations: 5171)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 3426)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (5.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.6ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 19.8ms | Allocations: 3426)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.9ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 280.5ms | Allocations: 70025)
Rendered layout layouts/application.html.erb (Duration: 297.4ms | Allocations: 77837)

Completed 200 OK in 306ms (Views: 234.1ms | ActiveRecord: 64.6ms | Allocations: 80242)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 15:02:02 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (3.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.1ms | Allocations: 3429)
Rendered comments/_form.html.erb (Duration: 8.7ms | Allocations: 1297)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 2], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 6.4ms | Allocations: 1647)
Rendered products/show.html.erb within layouts/application (Duration: 42.8ms | Allocations: 7077)
Rendered layout layouts/application.html.erb (Duration: 69.9ms | Allocations: 14894)

Completed 200 OK in 88ms (Views: 64.8ms | ActiveRecord: 9.2ms | Allocations: 17022)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:02:04 -0500 Processing by ProductsController#index as HTML

Order Load (1.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 28.9ms | Allocations: 8590)
Product Exists? (1.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.7ms | Allocations: 3523)
Tag Load (3.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.1ms | Allocations: 2632)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 31.7ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.3ms | Allocations: 2632)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 36.8ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.4ms | Allocations: 2632)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.5ms | Allocations: 2632)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 2704)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2632)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2632)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.4ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.9ms | Allocations: 3421)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (1.7ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 21.0ms | Allocations: 3426)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (1.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 21.5ms | Allocations: 3426)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2632)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 405.6ms | Allocations: 67296)
Rendered layout layouts/application.html.erb (Duration: 424.7ms | Allocations: 75050)

Completed 200 OK in 449ms (Views: 374.8ms | ActiveRecord: 58.1ms | Allocations: 76818)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-17 15:02:05 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (1.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 49ms (ActiveRecord: 1.7ms | Allocations: 2778)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:02:05 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.3ms | Allocations: 8633)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1985)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1819)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1818)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 173.7ms | Allocations: 47933)
Rendered layout layouts/application.html.erb (Duration: 186.7ms | Allocations: 55691)

Completed 200 OK in 196ms (Views: 174.8ms | ActiveRecord: 13.5ms | Allocations: 57274)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 15:02:06 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 0.3ms | Allocations: 138)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 4.8ms | Allocations: 1298)
Rendered layout layouts/application.html.erb (Duration: 41.8ms | Allocations: 8978)

Completed 200 OK in 55ms (Views: 44.2ms | ActiveRecord: 0.0ms | Allocations: 9657)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 15:02:12 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"support@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "support@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 264ms (ActiveRecord: 0.4ms | Allocations: 2445)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:02:12 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.8ms | Allocations: 8566)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2068)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.5ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.2ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.3ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.1ms | Allocations: 1246)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.6ms | Allocations: 1228)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.5ms | Allocations: 1228)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.4ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.2ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.2ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.4ms | Allocations: 1227)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.4ms | Allocations: 1227)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 2.9ms | Allocations: 1227)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.0ms | Allocations: 1228)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.2ms | Allocations: 1228)
Rendered products/index.html.erb within layouts/application (Duration: 98.0ms | Allocations: 36676)
Rendered layout layouts/application.html.erb (Duration: 110.2ms | Allocations: 44402)

Completed 200 OK in 116ms (Views: 103.2ms | ActiveRecord: 8.0ms | Allocations: 45772)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 15:02:14 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (1.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2031)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 2], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 12.5ms | Allocations: 3763)
Rendered products/show.html.erb within layouts/application (Duration: 21.3ms | Allocations: 6224)
Rendered layout layouts/application.html.erb (Duration: 35.3ms | Allocations: 13912)

Completed 200 OK in 43ms (Views: 33.9ms | ActiveRecord: 3.6ms | Allocations: 15725)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:02:15 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (5.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 19.3ms | Allocations: 8569)
Product Exists? (0.9ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2067)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1228)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1228)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1228)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 1228)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1228)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1228)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1228)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1246)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1228)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1228)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1228)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1228)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1228)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1228)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1227)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1227)
Tag Load (4.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1227)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1228)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1228)
Rendered products/index.html.erb within layouts/application (Duration: 163.6ms | Allocations: 36675)
Rendered layout layouts/application.html.erb (Duration: 183.0ms | Allocations: 44374)

Completed 200 OK in 195ms (Views: 153.1ms | ActiveRecord: 30.9ms | Allocations: 45701)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-17 15:03:08 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 20ms (ActiveRecord: 0.2ms | Allocations: 1799)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:03:08 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (3.8ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.2ms | Allocations: 9171)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (3.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2688)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1837)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1818)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 1818)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 167.1ms | Allocations: 49676)
Rendered layout layouts/application.html.erb (Duration: 183.8ms | Allocations: 58140)

Completed 200 OK in 195ms (Views: 170.6ms | ActiveRecord: 19.2ms | Allocations: 60063)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 15:03:09 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (2.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1863)
Comment Load (0.8ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" IS NULL)  [["commentable_id", 2], ["commentable_type", "Product"], ["approved", true]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 6.7ms | Allocations: 1267)
Rendered products/show.html.erb within layouts/application (Duration: 14.9ms | Allocations: 3624)
Rendered layout layouts/application.html.erb (Duration: 38.3ms | Allocations: 11340)

Completed 200 OK in 54ms (Views: 36.6ms | ActiveRecord: 5.3ms | Allocations: 13308)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:03:11 -0500 Processing by ProductsController#index as HTML

Order Load (1.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 15.5ms | Allocations: 8571)
Product Exists? (2.8ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (2.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1895)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1837)
Tag Load (3.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 1819)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 1819)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 1819)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1819)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.5ms | Allocations: 1818)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 1818)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 210.0ms | Allocations: 47768)
Rendered layout layouts/application.html.erb (Duration: 237.3ms | Allocations: 55484)

Completed 200 OK in 248ms (Views: 213.6ms | ActiveRecord: 25.3ms | Allocations: 56822)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 15:03:11 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 1863)
Comment Load (0.6ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" IS NULL)  [["commentable_id", 2], ["commentable_type", "Product"], ["approved", true]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 5.9ms | Allocations: 919)
Rendered products/show.html.erb within layouts/application (Duration: 20.9ms | Allocations: 3002)
Rendered layout layouts/application.html.erb (Duration: 36.1ms | Allocations: 10662)

Completed 200 OK in 52ms (Views: 34.4ms | ActiveRecord: 3.5ms | Allocations: 12463)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:03:12 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.2ms | Allocations: 8568)
Product Exists? (3.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1895)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 33.1ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.3ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 1819)
Tag Load (4.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 1819)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 1837)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 26.0ms | Allocations: 1819)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 20.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 59.9ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1818)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1818)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1818)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 356.4ms | Allocations: 47765)
Rendered layout layouts/application.html.erb (Duration: 373.9ms | Allocations: 55481)

Completed 200 OK in 382ms (Views: 354.1ms | ActiveRecord: 22.6ms | Allocations: 56817)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 15:03:12 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 2.0ms | Allocations: 549)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 10.5ms | Allocations: 2325)
Rendered layout layouts/application.html.erb (Duration: 32.1ms | Allocations: 10293)

Completed 200 OK in 41ms (Views: 37.6ms | ActiveRecord: 0.0ms | Allocations: 11609)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 15:03:18 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"test1@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2 LIMIT $3  [["user_id", 3], ["status", 0], ["LIMIT", 1]]
↳ app/controllers/sessions_controller.rb:12:in `after_login'
TRANSACTION (0.2ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
TRANSACTION (0.2ms)  COMMIT
↳ app/controllers/sessions_controller.rb:15:in `after_login'

Completed 302 Found in 264ms (ActiveRecord: 1.8ms | Allocations: 5325)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:03:19 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.4ms | Allocations: 8581)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 3522)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2632)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2632)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2704)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2632)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 2632)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (1.0ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 17.7ms | Allocations: 3426)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (5.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.7ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 22.8ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 20.4ms | Allocations: 3427)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.8ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.5ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 291.2ms | Allocations: 67307)
Rendered layout layouts/application.html.erb (Duration: 309.3ms | Allocations: 75070)

Completed 200 OK in 317ms (Views: 276.2ms | ActiveRecord: 34.3ms | Allocations: 76790)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 15:03:20 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (2.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.7ms | Allocations: 3432)
Rendered comments/_form.html.erb (Duration: 4.0ms | Allocations: 997)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 2], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
User Load (2.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 8.0ms | Allocations: 1778)
Rendered products/show.html.erb within layouts/application (Duration: 42.4ms | Allocations: 6532)
Rendered layout layouts/application.html.erb (Duration: 61.1ms | Allocations: 14229)

Completed 200 OK in 77ms (Views: 56.8ms | ActiveRecord: 6.6ms | Allocations: 16341)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:03:21 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (3.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 28.3ms | Allocations: 8564)
Product Exists? (2.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (2.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.6ms | Allocations: 3467)
Tag Load (4.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2632)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.7ms | Allocations: 2632)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2632)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 2632)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2704)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2632)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 3421)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 3426)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 273.8ms | Allocations: 67176)
Rendered layout layouts/application.html.erb (Duration: 286.8ms | Allocations: 74929)

Completed 200 OK in 298ms (Views: 247.3ms | ActiveRecord: 40.6ms | Allocations: 76580)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-17 15:03:23 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 7ms (ActiveRecord: 0.5ms | Allocations: 1832)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:03:23 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.2ms | Allocations: 8568)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 1899)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1819)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1819)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1819)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1819)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1837)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 172.4ms | Allocations: 47770)
Rendered layout layouts/application.html.erb (Duration: 186.6ms | Allocations: 55486)

Completed 200 OK in 193ms (Views: 170.3ms | ActiveRecord: 17.5ms | Allocations: 56837)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 15:03:24 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 0.3ms | Allocations: 138)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 6.1ms | Allocations: 1284)
Rendered layout layouts/application.html.erb (Duration: 33.4ms | Allocations: 8977)

Completed 200 OK in 37ms (Views: 34.1ms | ActiveRecord: 0.0ms | Allocations: 9627)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 15:03:30 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"test2@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "test2@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2 LIMIT $3  [["user_id", 4], ["status", 0], ["LIMIT", 1]]
↳ app/controllers/sessions_controller.rb:12:in `after_login'
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/sessions_controller.rb:15:in `after_login'
Order Create (76.2ms)  INSERT INTO "orders" ("date", "user_id", "total", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["date", nil], ["user_id", 4], ["total", "0.0"], ["status", 0], ["created_at", "2022-07-17 20:03:30.281286"], ["updated_at", "2022-07-17 20:03:30.281286"]]
↳ app/controllers/sessions_controller.rb:15:in `after_login'
TRANSACTION (22.1ms)  COMMIT
↳ app/controllers/sessions_controller.rb:15:in `after_login'

Completed 302 Found in 353ms (ActiveRecord: 99.4ms | Allocations: 6609)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:03:30 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.9ms | Allocations: 8562)
Product Exists? (6.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (5.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.0ms | Allocations: 3472)
Tag Load (3.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 2632)
Tag Load (3.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.1ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2632)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 2632)
Tag Load (4.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 2704)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 2632)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.8ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 3422)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 3426)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 3426)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 285.9ms | Allocations: 67183)
Rendered layout layouts/application.html.erb (Duration: 302.3ms | Allocations: 74936)

Completed 200 OK in 312ms (Views: 257.4ms | ActiveRecord: 49.7ms | Allocations: 76610)

Started GET “/products/2” for 127.0.0.1 at 2022-07-17 15:03:31 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:16:in `show'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (7.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 27.7ms | Allocations: 3429)
Rendered comments/_form.html.erb (Duration: 1.5ms | Allocations: 763)
Comment Load (0.7ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 2], ["commentable_type", "Product"], ["approved", true], ["user_id", 4]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 21.0ms | Allocations: 2497)
Rendered products/show.html.erb within layouts/application (Duration: 56.0ms | Allocations: 6956)
Rendered layout layouts/application.html.erb (Duration: 79.2ms | Allocations: 14653)

Completed 200 OK in 102ms (Views: 70.4ms | ActiveRecord: 13.6ms | Allocations: 16793)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:03:32 -0500 Processing by ProductsController#index as HTML

Order Load (8.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 21.2ms | Allocations: 8563)
Product Exists? (1.1ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 3467)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.2ms | Allocations: 2632)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2632)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 2704)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2632)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2632)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2632)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 15.4ms | Allocations: 3421)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 3426)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (1.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 3426)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2632)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 4], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 2632)
Rendered products/index.html.erb within layouts/application (Duration: 256.6ms | Allocations: 67175)
Rendered layout layouts/application.html.erb (Duration: 268.8ms | Allocations: 74892)

Completed 200 OK in 288ms (Views: 238.5ms | ActiveRecord: 39.4ms | Allocations: 76522)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-17 15:07:20 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (1.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 17ms (ActiveRecord: 1.6ms | Allocations: 1808)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:07:20 -0500 Processing by ProductsController#index as HTML

Order Load (1.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (6.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 13.2ms | Allocations: 8567)
Product Exists? (1.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1899)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1818)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 119.9ms | Allocations: 47768)
Rendered layout layouts/application.html.erb (Duration: 132.6ms | Allocations: 55428)

Completed 200 OK in 140ms (Views: 118.5ms | ActiveRecord: 16.3ms | Allocations: 56765)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 15:07:21 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 0.3ms | Allocations: 138)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 3.6ms | Allocations: 1284)
Rendered layout layouts/application.html.erb (Duration: 24.5ms | Allocations: 8964)

Completed 200 OK in 31ms (Views: 28.5ms | ActiveRecord: 0.0ms | Allocations: 9635)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 15:07:26 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"alvaro@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 238ms (ActiveRecord: 0.6ms | Allocations: 2411)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:07:26 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.9ms | Allocations: 8565)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.2ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2340)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1495)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 132.1ms | Allocations: 42061)
Rendered layout layouts/application.html.erb (Duration: 144.6ms | Allocations: 49726)

Completed 200 OK in 150ms (Views: 135.5ms | ActiveRecord: 10.3ms | Allocations: 51086)

Started GET “/products/new” for 127.0.0.1 at 2022-07-17 15:07:30 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
Rendered products/new.html.erb within layouts/application (Duration: 6.2ms | Allocations: 1858)
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 25.9ms | Allocations: 10336)

Completed 200 OK in 29ms (Views: 27.7ms | ActiveRecord: 0.2ms | Allocations: 10689)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:07:31 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.9ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 16.7ms | Allocations: 8567)
Product Exists? (0.9ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2333)
Tag Load (3.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1498)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1494)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 1512)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 1494)
Tag Load (9.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 42.0ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.0ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 263.2ms | Allocations: 42074)
Rendered layout layouts/application.html.erb (Duration: 283.4ms | Allocations: 49795)

Completed 200 OK in 288ms (Views: 256.6ms | ActiveRecord: 27.6ms | Allocations: 51117)

Started GET “/products/2/edit” for 127.0.0.1 at 2022-07-17 15:07:33 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"2"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:73:in `set_product'
User Load (3.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:73:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/edit.html.erb within layouts/application (Duration: 13.1ms | Allocations: 1107)
Rendered layout layouts/application.html.erb (Duration: 33.5ms | Allocations: 8772)

Completed 200 OK in 43ms (Views: 34.2ms | ActiveRecord: 4.0ms | Allocations: 10589)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:07:34 -0500 Processing by ProductsController#index as HTML

Order Load (7.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 15.9ms | Allocations: 8568)
Product Exists? (1.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (4.2ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (2.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2333)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1512)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1493)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 175.6ms | Allocations: 42048)
Rendered layout layouts/application.html.erb (Duration: 199.1ms | Allocations: 49713)

Completed 200 OK in 217ms (Views: 182.5ms | ActiveRecord: 28.3ms | Allocations: 51073)

Started GET “/products/new” for 127.0.0.1 at 2022-07-17 15:09:12 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
Rendered products/new.html.erb within layouts/application (Duration: 5.1ms | Allocations: 1962)
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 29.3ms | Allocations: 11393)

Completed 200 OK in 46ms (Views: 44.4ms | ActiveRecord: 0.3ms | Allocations: 12255)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:11:28 -0500 Processing by ProductsController#index as HTML

Order Load (1.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.9ms | Allocations: 9171)
Product Exists? (1.0ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 17.8ms | Allocations: 3096)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1493)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 161.2ms | Allocations: 43964)
Rendered layout layouts/application.html.erb (Duration: 178.1ms | Allocations: 52428)

Completed 200 OK in 194ms (Views: 174.7ms | ActiveRecord: 11.7ms | Allocations: 54431)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:11:28 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 13.2ms | Allocations: 8568)
Product Exists? (1.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (2.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 2333)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 152.0ms | Allocations: 42048)
Rendered layout layouts/application.html.erb (Duration: 177.3ms | Allocations: 49733)

Completed 200 OK in 190ms (Views: 168.1ms | ActiveRecord: 12.5ms | Allocations: 51156)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:11:29 -0500 Processing by ProductsController#index as HTML

Order Load (1.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 16.8ms | Allocations: 8567)
Product Exists? (1.1ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2333)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1512)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 162.3ms | Allocations: 42047)
Rendered layout layouts/application.html.erb (Duration: 179.2ms | Allocations: 49712)

Completed 200 OK in 187ms (Views: 167.0ms | ActiveRecord: 14.3ms | Allocations: 51060)

Started GET “/products/2/edit” for 127.0.0.1 at 2022-07-17 15:11:31 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"2"}
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:73:in `set_product'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:73:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 4.4ms | Allocations: 1663)
Rendered products/edit.html.erb within layouts/application (Duration: 6.8ms | Allocations: 1917)
Rendered layout layouts/application.html.erb (Duration: 30.6ms | Allocations: 9582)

Completed 200 OK in 41ms (Views: 31.1ms | ActiveRecord: 1.0ms | Allocations: 11389)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:11:34 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 19.6ms | Allocations: 8567)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 19.3ms | Allocations: 2333)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 163.4ms | Allocations: 42047)
Rendered layout layouts/application.html.erb (Duration: 178.6ms | Allocations: 49712)

Completed 200 OK in 187ms (Views: 169.0ms | ActiveRecord: 10.8ms | Allocations: 51048)

Started GET “/products/new” for 127.0.0.1 at 2022-07-17 15:11:38 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 10.0ms | Allocations: 1394)
Rendered products/new.html.erb within layouts/application (Duration: 12.4ms | Allocations: 1594)
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 37.3ms | Allocations: 10072)

Completed 200 OK in 41ms (Views: 39.5ms | ActiveRecord: 0.5ms | Allocations: 10415)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:11:40 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 13.7ms | Allocations: 8567)
Product Exists? (0.8ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 16.4ms | Allocations: 2333)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1512)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1493)
Tag Load (6.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 1493)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 28.1ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1495)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 243.1ms | Allocations: 42048)
Rendered layout layouts/application.html.erb (Duration: 259.2ms | Allocations: 49769)

Completed 200 OK in 273ms (Views: 238.0ms | ActiveRecord: 22.6ms | Allocations: 51100)

Started GET “/products/new” for 127.0.0.1 at 2022-07-17 15:11:41 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 2.8ms | Allocations: 1406)
Rendered products/new.html.erb within layouts/application (Duration: 20.9ms | Allocations: 1488)
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 53.8ms | Allocations: 9966)

Completed 200 OK in 58ms (Views: 56.9ms | ActiveRecord: 0.9ms | Allocations: 10255)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:11:43 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (3.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 16.0ms | Allocations: 8568)
Product Exists? (2.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (2.0ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 18.4ms | Allocations: 2333)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1494)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1494)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 1494)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1494)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1494)
Tag Load (4.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1512)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 205.9ms | Allocations: 42048)
Rendered layout layouts/application.html.erb (Duration: 226.9ms | Allocations: 49713)

Completed 200 OK in 237ms (Views: 198.0ms | ActiveRecord: 30.0ms | Allocations: 51034)

Started GET “/products/new” for 127.0.0.1 at 2022-07-17 15:12:23 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 3.6ms | Allocations: 1909)
Rendered products/new.html.erb within layouts/application (Duration: 4.9ms | Allocations: 2214)
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 33.9ms | Allocations: 11645)

Completed 200 OK in 42ms (Views: 35.6ms | ActiveRecord: 0.2ms | Allocations: 12507)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:12:39 -0500 Processing by ProductsController#index as HTML

Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 16.0ms | Allocations: 9171)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 3096)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 1512)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.3ms | Allocations: 1493)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 1493)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 1527)
Rendered products/index.html.erb within layouts/application (Duration: 193.8ms | Allocations: 43964)
Rendered layout layouts/application.html.erb (Duration: 222.1ms | Allocations: 52428)

Completed 200 OK in 246ms (Views: 211.1ms | ActiveRecord: 17.9ms | Allocations: 54395)

Started GET “/products/2/edit” for 127.0.0.1 at 2022-07-17 15:12:40 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"2"}
Product Load (2.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:73:in `set_product'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:73:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 5.4ms | Allocations: 1663)
Rendered products/edit.html.erb within layouts/application (Duration: 6.5ms | Allocations: 1926)
Rendered layout layouts/application.html.erb (Duration: 27.3ms | Allocations: 9591)

Completed 200 OK in 36ms (Views: 27.8ms | ActiveRecord: 2.8ms | Allocations: 11477)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:12:41 -0500 Processing by ProductsController#index as HTML

Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 18.2ms | Allocations: 8568)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (4.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 19.9ms | Allocations: 2333)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 1494)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1493)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1493)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 227.8ms | Allocations: 42048)
Rendered layout layouts/application.html.erb (Duration: 247.5ms | Allocations: 49733)

Completed 200 OK in 272ms (Views: 231.8ms | ActiveRecord: 20.7ms | Allocations: 51102)

Started GET “/products/new” for 127.0.0.1 at 2022-07-17 15:12:53 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 7.1ms | Allocations: 1936)
Rendered products/new.html.erb within layouts/application (Duration: 16.5ms | Allocations: 2237)
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 50.9ms | Allocations: 11654)

Completed 200 OK in 60ms (Views: 58.4ms | ActiveRecord: 0.6ms | Allocations: 12517)

Started GET “/products/new” for 127.0.0.1 at 2022-07-17 15:13:01 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 7.9ms | Allocations: 1902)
Rendered products/new.html.erb within layouts/application (Duration: 10.5ms | Allocations: 2201)
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 36.9ms | Allocations: 11618)

Completed 200 OK in 44ms (Views: 43.0ms | ActiveRecord: 0.2ms | Allocations: 12503)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:13:02 -0500 Processing by ProductsController#index as HTML

Order Load (4.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 25.4ms | Allocations: 8993)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 2952)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 180.5ms | Allocations: 43543)
Rendered layout layouts/application.html.erb (Duration: 198.3ms | Allocations: 51208)

Completed 200 OK in 211ms (Views: 190.2ms | ActiveRecord: 13.0ms | Allocations: 52675)

Started GET “/products/1/edit” for 127.0.0.1 at 2022-07-17 15:13:04 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"1"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:73:in `set_product'
User Load (1.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:73:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 4.3ms | Allocations: 1316)
Rendered products/edit.html.erb within layouts/application (Duration: 7.7ms | Allocations: 1524)
Rendered layout layouts/application.html.erb (Duration: 26.2ms | Allocations: 9189)

Completed 200 OK in 40ms (Views: 27.4ms | ActiveRecord: 2.0ms | Allocations: 10998)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:13:05 -0500 Processing by ProductsController#index as HTML

Order Load (2.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.6ms | Allocations: 8567)
Product Exists? (1.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2333)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 125.6ms | Allocations: 42047)
Rendered layout layouts/application.html.erb (Duration: 143.7ms | Allocations: 49712)

Completed 200 OK in 158ms (Views: 132.4ms | ActiveRecord: 14.1ms | Allocations: 51057)

Started GET “/products/new” for 127.0.0.1 at 2022-07-17 15:13:07 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 6.1ms | Allocations: 1379)
Rendered products/new.html.erb within layouts/application (Duration: 8.6ms | Allocations: 1461)
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 43.3ms | Allocations: 9996)

Completed 200 OK in 55ms (Views: 52.7ms | ActiveRecord: 0.2ms | Allocations: 10287)

Started GET “/products/new” for 127.0.0.1 at 2022-07-17 15:13:21 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 5.4ms | Allocations: 1900)
Rendered products/new.html.erb within layouts/application (Duration: 8.4ms | Allocations: 2202)
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 51.0ms | Allocations: 11646)

Completed 200 OK in 67ms (Views: 58.6ms | ActiveRecord: 0.3ms | Allocations: 12505)

Started GET “/products/new” for 127.0.0.1 at 2022-07-17 15:13:28 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 3.8ms | Allocations: 1884)
Rendered products/new.html.erb within layouts/application (Duration: 8.4ms | Allocations: 2183)
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 40.8ms | Allocations: 11600)

Completed 200 OK in 49ms (Views: 47.4ms | ActiveRecord: 0.2ms | Allocations: 12485)

Started GET “/products/new” for 127.0.0.1 at 2022-07-17 15:14:52 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 4.3ms | Allocations: 1945)
Rendered products/new.html.erb within layouts/application (Duration: 8.2ms | Allocations: 2244)
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 29.1ms | Allocations: 11647)

Completed 200 OK in 33ms (Views: 31.4ms | ActiveRecord: 0.3ms | Allocations: 12532)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:14:53 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.8ms | Allocations: 8994)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 14.5ms | Allocations: 2952)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1512)
Tag Load (3.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 1494)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1494)
Tag Load (3.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1494)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1493)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1493)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 206.4ms | Allocations: 43543)
Rendered layout layouts/application.html.erb (Duration: 221.7ms | Allocations: 51222)

Completed 200 OK in 238ms (Views: 204.5ms | ActiveRecord: 21.1ms | Allocations: 52668)

Started GET “/products/2/edit” for 127.0.0.1 at 2022-07-17 15:14:54 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"2"}
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:73:in `set_product'
User Load (1.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:73:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 5.3ms | Allocations: 1334)
Rendered products/edit.html.erb within layouts/application (Duration: 7.0ms | Allocations: 1542)
Rendered layout layouts/application.html.erb (Duration: 32.1ms | Allocations: 9207)

Completed 200 OK in 43ms (Views: 33.3ms | ActiveRecord: 1.8ms | Allocations: 11049)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:14:55 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.1ms | Allocations: 8567)
Product Exists? (3.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (3.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2333)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1494)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 1494)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1493)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 181.8ms | Allocations: 42047)
Rendered layout layouts/application.html.erb (Duration: 198.3ms | Allocations: 49765)

Completed 200 OK in 206ms (Views: 177.3ms | ActiveRecord: 22.1ms | Allocations: 51096)

Started GET “/products/2/edit” for 127.0.0.1 at 2022-07-17 15:17:33 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#edit as HTML

Parameters: {"id"=>"2"}
Product Load (0.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 2.9ms | Allocations: 1597)
Rendered products/edit.html.erb within layouts/application (Duration: 3.9ms | Allocations: 1692)
Rendered layout layouts/application.html.erb (Duration: 46.8ms | Allocations: 24430)

Completed 200 OK in 111ms (Views: 51.7ms | ActiveRecord: 7.2ms | Allocations: 37502)

Started PATCH “/products/2” for 127.0.0.1 at 2022-07-17 15:17:36 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"pringles", "description"=>"Stackable potato-based crisps", "price"=>"25", "stock"=>"25"}, "commit"=>"Update", "id"=>"2"}
Product Load (1.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
TRANSACTION (0.4ms)  BEGIN
↳ app/controllers/products_controller.rb:44:in `update'
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 AND "products"."id" != $2 LIMIT $3  [["name", "pringles"], ["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:44:in `update'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/models/product.rb:48:in `block in new_log_update'
Log Create (34.3ms)  INSERT INTO "logs" ("loggable_type", "loggable_id", "attr", "old_val", "new_val", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["loggable_type", "Product"], ["loggable_id", 2], ["attr", "price"], ["old_val", "22.0"], ["new_val", "25.0"], ["user_id", 1], ["created_at", "2022-07-17 20:17:36.670046"], ["updated_at", "2022-07-17 20:17:36.670046"]]
↳ app/models/product.rb:48:in `block in new_log_update'
Product Update (0.6ms)  UPDATE "products" SET "price" = $1, "updated_at" = $2 WHERE "products"."id" = $3  [["price", "25.0"], ["updated_at", "2022-07-17 20:17:36.646920"], ["id", 2]]
↳ app/controllers/products_controller.rb:44:in `update'
TRANSACTION (16.5ms)  COMMIT
↳ app/controllers/products_controller.rb:44:in `update'

Redirected to localhost:3000/products Completed 302 Found in 106ms (ActiveRecord: 58.4ms | Allocations: 15126)

Started GET “/products” for 127.0.0.1 at 2022-07-17 15:17:36 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 19.7ms | Allocations: 12616)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.9ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 25.8ms | Allocations: 8743)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1711)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1496)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1493)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1493)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1493)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 173.2ms | Allocations: 52921)
Rendered layout layouts/application.html.erb (Duration: 187.4ms | Allocations: 60699)

Completed 200 OK in 221ms (Views: 170.6ms | ActiveRecord: 24.2ms | Allocations: 70198)

Started GET “/logs” for 127.0.0.1 at 2022-07-17 15:17:57 -0500 Processing by LogsController#index as HTML

User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/logs_controller.rb:8:in `index'
Rendering layout layouts/application.html.erb
Rendering logs/index.html.erb within layouts/application
Log Load (0.3ms)  SELECT "logs".* FROM "logs"
↳ app/views/logs/index.html.erb:20
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
Rendered logs/index.html.erb within layouts/application (Duration: 26.7ms | Allocations: 3802)
Rendered layout layouts/application.html.erb (Duration: 41.3ms | Allocations: 11815)

Completed 200 OK in 51ms (Views: 43.4ms | ActiveRecord: 1.0ms | Allocations: 14052)

Started GET “/products” for 127.0.0.1 at 2022-07-17 15:18:02 -0500 Processing by ProductsController#index as HTML

Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.7ms | Allocations: 8606)
Product Exists? (5.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2380)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1493)
Tag Load (4.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 139.1ms | Allocations: 42147)
Rendered layout layouts/application.html.erb (Duration: 156.5ms | Allocations: 49865)

Completed 200 OK in 167ms (Views: 135.7ms | ActiveRecord: 22.2ms | Allocations: 51301)

Started GET “/products” for 127.0.0.1 at 2022-07-17 15:25:36 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 19.1ms | Allocations: 12463)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 32.8ms | Allocations: 11554)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1711)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1512)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1493)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 204.8ms | Allocations: 57208)
Rendered layout layouts/application.html.erb (Duration: 240.9ms | Allocations: 79972)

Completed 200 OK in 289ms (Views: 229.8ms | ActiveRecord: 18.9ms | Allocations: 96713)

Started GET “/products/6/edit” for 127.0.0.1 at 2022-07-17 15:25:38 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"6"}
Product Load (1.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (1.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 8.6ms | Allocations: 1417)
Rendered products/edit.html.erb within layouts/application (Duration: 10.0ms | Allocations: 1501)
Rendered layout layouts/application.html.erb (Duration: 42.3ms | Allocations: 9167)

Completed 200 OK in 62ms (Views: 48.6ms | ActiveRecord: 2.3ms | Allocations: 11631)

Started PATCH “/products/6” for 127.0.0.1 at 2022-07-17 15:25:40 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"coca cola", "description"=>"Carbonated soft drink", "price"=>"10", "stock"=>"50"}, "commit"=>"Update", "id"=>"6"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'

Completed 500 Internal Server Error in 64ms (ActiveRecord: 0.5ms | Allocations: 7185)

NoMethodError (undefined method ‘update_attributes’ for #<Product id: 6, name: “coca cola”, description: “Carbonated soft drink”, price: 0.8e1, stock: 50, created_at: “2022-07-17 08:02:35.104312000 +0000”, updated_at: “2022-07-17 08:02:35.104312000 +0000”, likes_count: 0> Did you mean? update_attribute):

app/controllers/products_controller.rb:44:in ‘update’ Started GET “/products” for 127.0.0.1 at 2022-07-17 15:25:58 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 19.9ms | Allocations: 12652)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.2ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 31.9ms | Allocations: 12340)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1711)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1494)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.3ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 177.2ms | Allocations: 58503)
Rendered layout layouts/application.html.erb (Duration: 221.8ms | Allocations: 81267)

Completed 200 OK in 273ms (Views: 199.4ms | ActiveRecord: 33.3ms | Allocations: 95610)

Started GET “/products” for 127.0.0.1 at 2022-07-17 15:25:59 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (8.0ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 21.1ms | Allocations: 8607)
Product Exists? (1.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 17.8ms | Allocations: 2355)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1494)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (4.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1512)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1493)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1493)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1497)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 207.1ms | Allocations: 42126)
Rendered layout layouts/application.html.erb (Duration: 232.9ms | Allocations: 49848)

Completed 200 OK in 239ms (Views: 196.1ms | ActiveRecord: 38.1ms | Allocations: 51334)

Started GET “/products/2/edit” for 127.0.0.1 at 2022-07-17 15:26:05 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"2"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 4.4ms | Allocations: 1396)
Rendered products/edit.html.erb within layouts/application (Duration: 4.7ms | Allocations: 1480)
Rendered layout layouts/application.html.erb (Duration: 20.3ms | Allocations: 9145)

Completed 200 OK in 32ms (Views: 21.3ms | ActiveRecord: 0.6ms | Allocations: 11492)

Started PATCH “/products/2” for 127.0.0.1 at 2022-07-17 15:26:09 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"pringles", "description"=>"Stackable potato-based crisps", "price"=>"30", "stock"=>"25"}, "commit"=>"Update", "id"=>"2"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/products_controller.rb:44:in `update'
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 AND "products"."id" != $2 LIMIT $3  [["name", "pringles"], ["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:44:in `update'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/models/product.rb:48:in `block in new_log_update'
Log Create (5.5ms)  INSERT INTO "logs" ("loggable_type", "loggable_id", "attr", "old_val", "new_val", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["loggable_type", "Product"], ["loggable_id", 2], ["attr", "price"], ["old_val", "25.0"], ["new_val", "30.0"], ["user_id", 1], ["created_at", "2022-07-17 20:26:09.709127"], ["updated_at", "2022-07-17 20:26:09.709127"]]
↳ app/models/product.rb:48:in `block in new_log_update'
Product Update (0.5ms)  UPDATE "products" SET "price" = $1, "updated_at" = $2 WHERE "products"."id" = $3  [["price", "30.0"], ["updated_at", "2022-07-17 20:26:09.661373"], ["id", 2]]
↳ app/controllers/products_controller.rb:44:in `update'
TRANSACTION (9.7ms)  COMMIT
↳ app/controllers/products_controller.rb:44:in `update'

Redirected to localhost:3000/products Completed 302 Found in 80ms (ActiveRecord: 21.6ms | Allocations: 21837)

Started GET “/products” for 127.0.0.1 at 2022-07-17 15:26:09 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 19.6ms | Allocations: 8627)
Product Exists? (4.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 2416)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1512)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1493)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.4ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 234.6ms | Allocations: 42208)
Rendered layout layouts/application.html.erb (Duration: 251.0ms | Allocations: 49976)

Completed 200 OK in 261ms (Views: 233.0ms | ActiveRecord: 19.1ms | Allocations: 51439)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-17 15:26:45 -0500 DEPRECATION WARNING: ‘include Pundit’ is deprecated. Please use ‘include Pundit::Authorization’ instead.

(called from include at /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/controllers/application_controller.rb:7)

Processing by Devise::SessionsController#destroy as HTML

User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 22ms (ActiveRecord: 4.3ms | Allocations: 6086)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:26:46 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 20.0ms | Allocations: 12657)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.2ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 8604)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 2007)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (3.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1837)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 212.6ms | Allocations: 60891)
Rendered layout layouts/application.html.erb (Duration: 278.0ms | Allocations: 83685)

Completed 200 OK in 329ms (Views: 261.2ms | ActiveRecord: 25.6ms | Allocations: 97344)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 15:26:47 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 1.8ms | Allocations: 565)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 5.7ms | Allocations: 2381)
Rendered layout layouts/application.html.erb (Duration: 26.4ms | Allocations: 10348)

Completed 200 OK in 31ms (Views: 29.1ms | ActiveRecord: 0.0ms | Allocations: 11983)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 15:26:52 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"support@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "support@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 242ms (ActiveRecord: 0.3ms | Allocations: 3005)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:26:53 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.7ms | Allocations: 8586)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2391)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 1498)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1497)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1515)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1496)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1496)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1496)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1497)
Rendered products/index.html.erb within layouts/application (Duration: 169.7ms | Allocations: 42144)
Rendered layout layouts/application.html.erb (Duration: 186.4ms | Allocations: 49878)

Completed 200 OK in 194ms (Views: 179.0ms | ActiveRecord: 9.2ms | Allocations: 51284)

Started GET “/products/2/edit” for 127.0.0.1 at 2022-07-17 15:26:55 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"2"}
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 3.2ms | Allocations: 1364)
Rendered products/edit.html.erb within layouts/application (Duration: 5.5ms | Allocations: 1448)
Rendered layout layouts/application.html.erb (Duration: 33.3ms | Allocations: 9113)

Completed 200 OK in 50ms (Views: 36.3ms | ActiveRecord: 1.2ms | Allocations: 11467)

Started PATCH “/products/2” for 127.0.0.1 at 2022-07-17 15:26:58 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"pringles", "description"=>"Stackable potato-based crisps", "price"=>"32", "stock"=>"25"}, "commit"=>"Update", "id"=>"2"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'

Unpermitted parameter: :price. Context: { controller: ProductsController, action: update, request: #<ActionDispatch::Request:0x00007f0b737edc88>, params: {“_method”=>“patch”, “authenticity_token”=>“”, “product”=>{“name”=>“pringles”, “description”=>“Stackable potato-based crisps”, “price”=>“32”, “stock”=>“25”}, “commit”=>“Update”, “controller”=>“products”, “action”=>“update”, “id”=>“2”} }

TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/products_controller.rb:44:in `update'
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 AND "products"."id" != $2 LIMIT $3  [["name", "pringles"], ["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:44:in `update'
TRANSACTION (0.3ms)  COMMIT
↳ app/controllers/products_controller.rb:44:in `update'

Redirected to localhost:3000/products Completed 302 Found in 20ms (ActiveRecord: 1.6ms | Allocations: 4497)

Started GET “/products” for 127.0.0.1 at 2022-07-17 15:26:58 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.2ms | Allocations: 8567)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2336)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1497)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1497)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1515)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1497)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1496)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1496)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1496)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1497)
Rendered products/index.html.erb within layouts/application (Duration: 116.0ms | Allocations: 42056)
Rendered layout layouts/application.html.erb (Duration: 129.8ms | Allocations: 49721)

Completed 200 OK in 135ms (Views: 123.1ms | ActiveRecord: 7.4ms | Allocations: 51072)

Log Load (0.5ms)  SELECT "logs".* FROM "logs"

Started GET “/products/2/edit” for 127.0.0.1 at 2022-07-17 15:28:03 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"2"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (1.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 3.6ms | Allocations: 1326)
Rendered products/edit.html.erb within layouts/application (Duration: 5.1ms | Allocations: 1408)
Rendered layout layouts/application.html.erb (Duration: 25.7ms | Allocations: 9073)

Completed 200 OK in 43ms (Views: 27.0ms | ActiveRecord: 1.5ms | Allocations: 10826)

Started PATCH “/products/2” for 127.0.0.1 at 2022-07-17 15:28:06 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"pringles", "description"=>"Stackable potato-based crisps", "price"=>"30.0", "stock"=>"30"}, "commit"=>"Update", "id"=>"2"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'

Unpermitted parameter: :price. Context: { controller: ProductsController, action: update, request: #<ActionDispatch::Request:0x00007f0b7346a9d0>, params: {“_method”=>“patch”, “authenticity_token”=>“”, “product”=>{“name”=>“pringles”, “description”=>“Stackable potato-based crisps”, “price”=>“30.0”, “stock”=>“30”}, “commit”=>“Update”, “controller”=>“products”, “action”=>“update”, “id”=>“2”} }

TRANSACTION (0.4ms)  BEGIN
↳ app/controllers/products_controller.rb:44:in `update'
Product Exists? (1.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 AND "products"."id" != $2 LIMIT $3  [["name", "pringles"], ["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:44:in `update'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/models/product.rb:48:in `block in new_log_update'
Log Create (0.5ms)  INSERT INTO "logs" ("loggable_type", "loggable_id", "attr", "old_val", "new_val", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["loggable_type", "Product"], ["loggable_id", 2], ["attr", "stock"], ["old_val", "25"], ["new_val", "30"], ["user_id", 2], ["created_at", "2022-07-17 20:28:06.515540"], ["updated_at", "2022-07-17 20:28:06.515540"]]
↳ app/models/product.rb:48:in `block in new_log_update'
Product Update (1.4ms)  UPDATE "products" SET "stock" = $1, "updated_at" = $2 WHERE "products"."id" = $3  [["stock", 30], ["updated_at", "2022-07-17 20:28:06.470511"], ["id", 2]]
↳ app/controllers/products_controller.rb:44:in `update'
TRANSACTION (12.9ms)  COMMIT
↳ app/controllers/products_controller.rb:44:in `update'

Redirected to localhost:3000/products Completed 302 Found in 82ms (ActiveRecord: 20.5ms | Allocations: 21489)

Started GET “/products” for 127.0.0.1 at 2022-07-17 15:28:06 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.9ms | Allocations: 8628)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2419)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1497)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1497)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1497)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1515)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1497)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.5ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1496)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1496)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1496)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1497)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1497)
Rendered products/index.html.erb within layouts/application (Duration: 119.3ms | Allocations: 42215)
Rendered layout layouts/application.html.erb (Duration: 133.5ms | Allocations: 50039)

Completed 200 OK in 139ms (Views: 125.5ms | ActiveRecord: 9.2ms | Allocations: 51493)

Log Load (0.3ms)  SELECT "logs".* FROM "logs"

Started GET “/products/2/edit” for 127.0.0.1 at 2022-07-17 15:30:08 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"2"}
Product Load (0.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 3.1ms | Allocations: 1597)
Rendered products/edit.html.erb within layouts/application (Duration: 4.1ms | Allocations: 1692)
Rendered layout layouts/application.html.erb (Duration: 38.1ms | Allocations: 24466)

Completed 200 OK in 87ms (Views: 39.9ms | ActiveRecord: 8.1ms | Allocations: 37466)

Started PATCH “/products/2” for 127.0.0.1 at 2022-07-17 15:30:13 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"pringles", "description"=>"Stackable potato-based crisps", "price"=>"29", "stock"=>"30"}, "commit"=>"Update", "id"=>"2"}
Product Load (2.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (2.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'

Unpermitted parameter: :price. Context: { controller: ProductsController, action: update, request: #<ActionDispatch::Request:0x00007f0b73a55a20>, params: {“_method”=>“patch”, “authenticity_token”=>“”, “product”=>{“name”=>“pringles”, “description”=>“Stackable potato-based crisps”, “price”=>“29”, “stock”=>“30”}, “commit”=>“Update”, “controller”=>“products”, “action”=>“update”, “id”=>“2”} }

TRANSACTION (2.1ms)  BEGIN
↳ app/controllers/products_controller.rb:44:in `update'
Product Exists? (2.0ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 AND "products"."id" != $2 LIMIT $3  [["name", "pringles"], ["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:44:in `update'
TRANSACTION (1.6ms)  COMMIT
↳ app/controllers/products_controller.rb:44:in `update'

Redirected to localhost:3000/products Completed 302 Found in 27ms (ActiveRecord: 10.0ms | Allocations: 4759)

Started GET “/products” for 127.0.0.1 at 2022-07-17 15:30:13 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (3.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 24.7ms | Allocations: 12639)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 19.0ms | Allocations: 8753)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1714)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1497)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1497)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1502)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1515)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1496)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1496)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1496)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1497)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1497)
Rendered products/index.html.erb within layouts/application (Duration: 142.0ms | Allocations: 52914)
Rendered layout layouts/application.html.erb (Duration: 154.0ms | Allocations: 60749)

Completed 200 OK in 189ms (Views: 139.8ms | ActiveRecord: 24.6ms | Allocations: 70224)

Started GET “/products” for 127.0.0.1 at 2022-07-17 15:38:17 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 35.4ms | Allocations: 12880)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 26.9ms | Allocations: 12148)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1714)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1497)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1497)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1497)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1515)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1497)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1497)
Tag Load (3.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1496)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 1496)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 1496)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.3ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1497)
Rendered products/index.html.erb within layouts/application (Duration: 211.0ms | Allocations: 58739)
Rendered layout layouts/application.html.erb (Duration: 269.5ms | Allocations: 82077)

Completed 200 OK in 331ms (Views: 260.6ms | ActiveRecord: 19.7ms | Allocations: 99185)

Started GET “/products/6/edit” for 127.0.0.1 at 2022-07-17 15:38:19 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"6"}
Product Load (1.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 7.6ms | Allocations: 1524)
Rendered products/edit.html.erb within layouts/application (Duration: 12.3ms | Allocations: 1786)
Rendered layout layouts/application.html.erb (Duration: 31.0ms | Allocations: 9452)

Completed 200 OK in 46ms (Views: 31.7ms | ActiveRecord: 2.0ms | Allocations: 11992)

Started PATCH “/products/6” for 127.0.0.1 at 2022-07-17 15:38:25 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"coca cola", "description"=>"Carbonated soft drink", "stock"=>"100"}, "commit"=>"Update", "id"=>"6"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/products_controller.rb:44:in `update'
Product Exists? (1.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 AND "products"."id" != $2 LIMIT $3  [["name", "coca cola"], ["id", 6], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:44:in `update'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/models/product.rb:48:in `block in new_log_update'
Log Create (0.7ms)  INSERT INTO "logs" ("loggable_type", "loggable_id", "attr", "old_val", "new_val", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["loggable_type", "Product"], ["loggable_id", 6], ["attr", "stock"], ["old_val", "50"], ["new_val", "100"], ["user_id", 2], ["created_at", "2022-07-17 20:38:25.987748"], ["updated_at", "2022-07-17 20:38:25.987748"]]
↳ app/models/product.rb:48:in `block in new_log_update'
Product Update (3.8ms)  UPDATE "products" SET "stock" = $1, "updated_at" = $2 WHERE "products"."id" = $3  [["stock", 100], ["updated_at", "2022-07-17 20:38:25.968294"], ["id", 6]]
↳ app/controllers/products_controller.rb:44:in `update'
TRANSACTION (12.3ms)  COMMIT
↳ app/controllers/products_controller.rb:44:in `update'

Redirected to localhost:3000/products Completed 302 Found in 56ms (ActiveRecord: 24.0ms | Allocations: 13178)

Started GET “/products” for 127.0.0.1 at 2022-07-17 15:38:26 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.9ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.1ms | Allocations: 8627)
Product Exists? (1.1ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2419)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1497)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1497)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1497)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1497)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1497)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1497)
Tag Load (5.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 1497)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1515)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1497)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1497)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1497)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1496)
Tag Load (3.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1496)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1496)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1497)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1497)
Rendered products/index.html.erb within layouts/application (Duration: 151.6ms | Allocations: 42259)
Rendered layout layouts/application.html.erb (Duration: 167.2ms | Allocations: 50083)

Completed 200 OK in 176ms (Views: 138.8ms | ActiveRecord: 30.7ms | Allocations: 51595)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-17 15:38:37 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (1.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 10ms (ActiveRecord: 1.7ms | Allocations: 2590)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:38:37 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.9ms | Allocations: 8627)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 2020)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 121.2ms | Allocations: 47962)
Rendered layout layouts/application.html.erb (Duration: 133.6ms | Allocations: 55779)

Completed 200 OK in 139ms (Views: 126.3ms | ActiveRecord: 8.2ms | Allocations: 57190)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 15:38:38 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 1.2ms | Allocations: 565)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 4.9ms | Allocations: 2377)
Rendered layout layouts/application.html.erb (Duration: 28.6ms | Allocations: 10296)

Completed 200 OK in 36ms (Views: 33.9ms | ActiveRecord: 0.0ms | Allocations: 11939)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 15:38:43 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"alvaro@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 230ms (ActiveRecord: 0.6ms | Allocations: 3009)

Started GET “/” for 127.0.0.1 at 2022-07-17 15:38:44 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.3ms | Allocations: 8586)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2376)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1495)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 123.5ms | Allocations: 42125)
Rendered layout layouts/application.html.erb (Duration: 137.2ms | Allocations: 49848)

Completed 200 OK in 143ms (Views: 132.3ms | ActiveRecord: 6.7ms | Allocations: 51258)

Started GET “/products/7/edit” for 127.0.0.1 at 2022-07-17 15:38:46 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"7"}
Product Load (0.8ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 4.8ms | Allocations: 1339)
Rendered products/edit.html.erb within layouts/application (Duration: 5.0ms | Allocations: 1421)
Rendered layout layouts/application.html.erb (Duration: 35.7ms | Allocations: 9086)

Completed 200 OK in 49ms (Views: 37.2ms | ActiveRecord: 1.2ms | Allocations: 10859)

Started PATCH “/products/7” for 127.0.0.1 at 2022-07-17 15:38:49 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"pepsi", "description"=>"Carbonated soft drink", "price"=>"9.5", "stock"=>"25"}, "commit"=>"Update", "id"=>"7"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/products_controller.rb:44:in `update'
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 AND "products"."id" != $2 LIMIT $3  [["name", "pepsi"], ["id", 7], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:44:in `update'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/models/product.rb:48:in `block in new_log_update'
Log Create (0.4ms)  INSERT INTO "logs" ("loggable_type", "loggable_id", "attr", "old_val", "new_val", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["loggable_type", "Product"], ["loggable_id", 7], ["attr", "price"], ["old_val", "7.5"], ["new_val", "9.5"], ["user_id", 1], ["created_at", "2022-07-17 20:38:49.447454"], ["updated_at", "2022-07-17 20:38:49.447454"]]
↳ app/models/product.rb:48:in `block in new_log_update'
Product Update (0.6ms)  UPDATE "products" SET "price" = $1, "updated_at" = $2 WHERE "products"."id" = $3  [["price", "9.5"], ["updated_at", "2022-07-17 20:38:49.441814"], ["id", 7]]
↳ app/controllers/products_controller.rb:44:in `update'
TRANSACTION (1.5ms)  COMMIT
↳ app/controllers/products_controller.rb:44:in `update'

Redirected to localhost:3000/products Completed 302 Found in 42ms (ActiveRecord: 3.5ms | Allocations: 6883)

Started GET “/products” for 127.0.0.1 at 2022-07-17 15:38:49 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.3ms | Allocations: 8568)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.9ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2333)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1495)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.3ms | Allocations: 1512)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 116.1ms | Allocations: 42052)
Rendered layout layouts/application.html.erb (Duration: 131.1ms | Allocations: 49773)

Completed 200 OK in 136ms (Views: 120.7ms | ActiveRecord: 11.4ms | Allocations: 51122)

Started GET “/logs” for 127.0.0.1 at 2022-07-17 15:39:14 -0500 Processing by LogsController#index as HTML

User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/logs_controller.rb:8:in `index'
Rendering layout layouts/application.html.erb
Rendering logs/index.html.erb within layouts/application
Log Load (0.4ms)  SELECT "logs".* FROM "logs"
↳ app/views/logs/index.html.erb:20
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
CACHE Product Load (0.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
CACHE Product Load (0.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
User Load (4.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
Product Load (1.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
Rendered logs/index.html.erb within layouts/application (Duration: 48.3ms | Allocations: 9360)
Rendered layout layouts/application.html.erb (Duration: 65.4ms | Allocations: 17314)

Completed 200 OK in 75ms (Views: 60.3ms | ActiveRecord: 7.8ms | Allocations: 19491)

Started GET “/products” for 127.0.0.1 at 2022-07-17 15:39:18 -0500 Processing by ProductsController#index as HTML

Order Load (1.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.1ms | Allocations: 8605)
Product Exists? (0.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (2.0ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (3.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 14.5ms | Allocations: 2380)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.4ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1512)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1494)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1493)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (3.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 1494)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 189.6ms | Allocations: 42146)
Rendered layout layouts/application.html.erb (Duration: 216.4ms | Allocations: 49867)

Completed 200 OK in 227ms (Views: 194.5ms | ActiveRecord: 26.0ms | Allocations: 51304)

Started GET “/products/new” for 127.0.0.1 at 2022-07-17 15:39:20 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 13.2ms | Allocations: 2266)
Rendered products/new.html.erb within layouts/application (Duration: 14.3ms | Allocations: 2473)
Rendered layout layouts/application.html.erb (Duration: 37.2ms | Allocations: 10146)

Completed 200 OK in 40ms (Views: 37.9ms | ActiveRecord: 0.2ms | Allocations: 10514)

Started GET “/products” for 127.0.0.1 at 2022-07-17 15:39:21 -0500 Processing by ProductsController#index as HTML

Order Load (2.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (4.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 17.0ms | Allocations: 8568)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 2333)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1494)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (5.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1512)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 26.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1493)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 248.7ms | Allocations: 42048)
Rendered layout layouts/application.html.erb (Duration: 274.3ms | Allocations: 49769)

Completed 200 OK in 287ms (Views: 246.4ms | ActiveRecord: 30.6ms | Allocations: 51116)

ActiveRecord::SchemaMigration Pluck (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
ActiveRecord::InternalMetadata Pluck (29.2ms)  SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
ActiveRecord::SchemaMigration Pluck (0.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
ActiveRecord::InternalMetadata Pluck (0.2ms)  SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
ActiveRecord::SchemaMigration Pluck (0.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
ActiveRecord::InternalMetadata Pluck (0.3ms)  SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
 (200.9ms)  DROP DATABASE IF EXISTS "store_development"
 (20.0ms)  DROP DATABASE IF EXISTS "store_test"
 (144.8ms)  CREATE DATABASE "store_development" ENCODING = 'unicode'
 (168.8ms)  CREATE DATABASE "store_test" ENCODING = 'unicode'
SQL (0.2ms)  CREATE EXTENSION IF NOT EXISTS "plpgsql"
 (0.3ms)  DROP TABLE IF EXISTS "comments" CASCADE
 (10.6ms)  CREATE TABLE "comments" ("id" bigserial primary key, "body" text, "rate" integer DEFAULT 0, "user_id" bigint NOT NULL, "commentable_type" character varying NOT NULL, "commentable_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "approved" boolean DEFAULT FALSE)
 (3.9ms)  CREATE INDEX "index_comments_on_commentable" ON "comments" ("commentable_type", "commentable_id")
 (2.6ms)  CREATE INDEX "index_comments_on_user_id" ON "comments" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "likes" CASCADE
 (3.6ms)  CREATE TABLE "likes" ("id" bigserial primary key, "user_id" bigint NOT NULL, "product_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.9ms)  CREATE INDEX "index_likes_on_product_id" ON "likes" ("product_id")
 (3.0ms)  CREATE UNIQUE INDEX "index_likes_on_user_id_and_product_id" ON "likes" ("user_id", "product_id")
 (2.5ms)  CREATE INDEX "index_likes_on_user_id" ON "likes" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "logs" CASCADE
 (5.8ms)  CREATE TABLE "logs" ("id" bigserial primary key, "loggable_type" character varying, "loggable_id" bigint, "attr" character varying, "old_val" character varying, "new_val" character varying, "user_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.7ms)  CREATE INDEX "index_logs_on_loggable" ON "logs" ("loggable_type", "loggable_id")
 (2.3ms)  CREATE INDEX "index_logs_on_user_id" ON "logs" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "order_lines" CASCADE
 (4.0ms)  CREATE TABLE "order_lines" ("id" bigserial primary key, "order_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" integer, "total" decimal(5,2), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (4.3ms)  CREATE INDEX "index_order_lines_on_order_id" ON "order_lines" ("order_id")
 (2.8ms)  CREATE INDEX "index_order_lines_on_product_id" ON "order_lines" ("product_id")
 (0.2ms)  DROP TABLE IF EXISTS "orders" CASCADE
 (3.4ms)  CREATE TABLE "orders" ("id" bigserial primary key, "date" date, "user_id" bigint, "total" decimal(6,2), "status" integer DEFAULT 0, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (1.9ms)  CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "products" CASCADE
 (5.0ms)  CREATE TABLE "products" ("id" bigserial primary key, "name" character varying, "description" character varying, "price" decimal(5,2), "stock" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "likes_count" integer DEFAULT 0)
 (0.2ms)  DROP TABLE IF EXISTS "products_tags" CASCADE
 (1.2ms)  CREATE TABLE "products_tags" ("product_id" bigint NOT NULL, "tag_id" bigint NOT NULL)
 (3.7ms)  CREATE INDEX "index_products_tags_on_product_id" ON "products_tags" ("product_id")
 (2.6ms)  CREATE INDEX "index_products_tags_on_tag_id" ON "products_tags" ("tag_id")
 (0.2ms)  DROP TABLE IF EXISTS "tags" CASCADE
 (6.2ms)  CREATE TABLE "tags" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (0.2ms)  DROP TABLE IF EXISTS "users" CASCADE
 (5.6ms)  CREATE TABLE "users" ("id" bigserial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp(6), "remember_created_at" timestamp(6), "first_name" character varying, "last_name" character varying, "address" character varying, "phone" character varying, "role" integer DEFAULT 0, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (3.6ms)  CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
 (2.9ms)  CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
 (2.6ms)  ALTER TABLE "comments" ADD CONSTRAINT "fk_rails_03de2dc08c"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (2.5ms)  ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_f7ed05ee50"

FOREIGN KEY (“product_id”)

REFERENCES "products" ("id")



 (2.2ms)  ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_1e09b5dabf"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (2.4ms)  ALTER TABLE "logs" ADD CONSTRAINT "fk_rails_8fc980bf44"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (2.2ms)  ALTER TABLE "order_lines" ADD CONSTRAINT "fk_rails_e6c763ee60"

FOREIGN KEY (“order_id”)

REFERENCES "orders" ("id")



 (2.2ms)  ALTER TABLE "order_lines" ADD CONSTRAINT "fk_rails_83e960fa54"

FOREIGN KEY (“product_id”)

REFERENCES "products" ("id")



 (1.9ms)  ALTER TABLE "orders" ADD CONSTRAINT "fk_rails_f868b47f6a"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (6.3ms)  CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
ActiveRecord::SchemaMigration Pluck (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (1.2ms)  INSERT INTO "schema_migrations" (version) VALUES (20220717072459)
 (1.2ms)  INSERT INTO "schema_migrations" (version) VALUES

(20220702233559), (20220702235959), (20220703000346), (20220703000538), (20220703002134), (20220703002541), (20220704010436), (20220704194659), (20220710000751), (20220710000931), (20220710003850), (20220710005152), (20220710005930), (20220710025851);



 (5.0ms)  CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
ActiveRecord::InternalMetadata Load (0.2ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
ActiveRecord::InternalMetadata Create (0.4ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"  [["key", "environment"], ["value", "development"], ["created_at", "2022-07-17 21:01:43.187228"], ["updated_at", "2022-07-17 21:01:43.187228"]]
TRANSACTION (1.2ms)  COMMIT
ActiveRecord::InternalMetadata Load (0.3ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
ActiveRecord::InternalMetadata Load (0.2ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "schema_sha1"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
ActiveRecord::InternalMetadata Create (0.3ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"  [["key", "schema_sha1"], ["value", "a79896619f224c75aaa3902e58c816f0f0e74f8b"], ["created_at", "2022-07-17 21:01:43.198856"], ["updated_at", "2022-07-17 21:01:43.198856"]]
TRANSACTION (0.8ms)  COMMIT
SQL (0.3ms)  CREATE EXTENSION IF NOT EXISTS "plpgsql"
 (0.2ms)  DROP TABLE IF EXISTS "comments" CASCADE
 (9.7ms)  CREATE TABLE "comments" ("id" bigserial primary key, "body" text, "rate" integer DEFAULT 0, "user_id" bigint NOT NULL, "commentable_type" character varying NOT NULL, "commentable_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "approved" boolean DEFAULT FALSE)
 (3.0ms)  CREATE INDEX "index_comments_on_commentable" ON "comments" ("commentable_type", "commentable_id")
 (2.6ms)  CREATE INDEX "index_comments_on_user_id" ON "comments" ("user_id")
 (4.4ms)  DROP TABLE IF EXISTS "likes" CASCADE
 (5.1ms)  CREATE TABLE "likes" ("id" bigserial primary key, "user_id" bigint NOT NULL, "product_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (3.1ms)  CREATE INDEX "index_likes_on_product_id" ON "likes" ("product_id")
 (2.9ms)  CREATE UNIQUE INDEX "index_likes_on_user_id_and_product_id" ON "likes" ("user_id", "product_id")
 (2.9ms)  CREATE INDEX "index_likes_on_user_id" ON "likes" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "logs" CASCADE
 (8.2ms)  CREATE TABLE "logs" ("id" bigserial primary key, "loggable_type" character varying, "loggable_id" bigint, "attr" character varying, "old_val" character varying, "new_val" character varying, "user_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.6ms)  CREATE INDEX "index_logs_on_loggable" ON "logs" ("loggable_type", "loggable_id")
 (2.4ms)  CREATE INDEX "index_logs_on_user_id" ON "logs" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "order_lines" CASCADE
 (3.9ms)  CREATE TABLE "order_lines" ("id" bigserial primary key, "order_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" integer, "total" decimal(5,2), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (3.2ms)  CREATE INDEX "index_order_lines_on_order_id" ON "order_lines" ("order_id")
 (3.7ms)  CREATE INDEX "index_order_lines_on_product_id" ON "order_lines" ("product_id")
 (0.2ms)  DROP TABLE IF EXISTS "orders" CASCADE
 (5.4ms)  CREATE TABLE "orders" ("id" bigserial primary key, "date" date, "user_id" bigint, "total" decimal(6,2), "status" integer DEFAULT 0, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.9ms)  CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "products" CASCADE
 (6.5ms)  CREATE TABLE "products" ("id" bigserial primary key, "name" character varying, "description" character varying, "price" decimal(5,2), "stock" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "likes_count" integer DEFAULT 0)
 (0.2ms)  DROP TABLE IF EXISTS "products_tags" CASCADE
 (1.5ms)  CREATE TABLE "products_tags" ("product_id" bigint NOT NULL, "tag_id" bigint NOT NULL)
 (2.7ms)  CREATE INDEX "index_products_tags_on_product_id" ON "products_tags" ("product_id")
 (2.8ms)  CREATE INDEX "index_products_tags_on_tag_id" ON "products_tags" ("tag_id")
 (4.3ms)  DROP TABLE IF EXISTS "tags" CASCADE
 (6.2ms)  CREATE TABLE "tags" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (0.2ms)  DROP TABLE IF EXISTS "users" CASCADE
 (6.4ms)  CREATE TABLE "users" ("id" bigserial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp(6), "remember_created_at" timestamp(6), "first_name" character varying, "last_name" character varying, "address" character varying, "phone" character varying, "role" integer DEFAULT 0, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.5ms)  CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
 (2.3ms)  CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
 (4.2ms)  ALTER TABLE "comments" ADD CONSTRAINT "fk_rails_03de2dc08c"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (1.8ms)  ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_f7ed05ee50"

FOREIGN KEY (“product_id”)

REFERENCES "products" ("id")



 (1.6ms)  ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_1e09b5dabf"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (1.8ms)  ALTER TABLE "logs" ADD CONSTRAINT "fk_rails_8fc980bf44"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (2.3ms)  ALTER TABLE "order_lines" ADD CONSTRAINT "fk_rails_e6c763ee60"

FOREIGN KEY (“order_id”)

REFERENCES "orders" ("id")



 (1.7ms)  ALTER TABLE "order_lines" ADD CONSTRAINT "fk_rails_83e960fa54"

FOREIGN KEY (“product_id”)

REFERENCES "products" ("id")



 (1.5ms)  ALTER TABLE "orders" ADD CONSTRAINT "fk_rails_f868b47f6a"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (6.2ms)  CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
ActiveRecord::SchemaMigration Pluck (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (1.2ms)  INSERT INTO "schema_migrations" (version) VALUES (20220717072459)
 (1.1ms)  INSERT INTO "schema_migrations" (version) VALUES

(20220702233559), (20220702235959), (20220703000346), (20220703000538), (20220703002134), (20220703002541), (20220704010436), (20220704194659), (20220710000751), (20220710000931), (20220710003850), (20220710005152), (20220710005930), (20220710025851);



 (6.1ms)  CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
ActiveRecord::InternalMetadata Load (0.3ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
ActiveRecord::InternalMetadata Create (0.4ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"  [["key", "environment"], ["value", "development"], ["created_at", "2022-07-17 21:01:43.440725"], ["updated_at", "2022-07-17 21:01:43.440725"]]
TRANSACTION (1.2ms)  COMMIT
ActiveRecord::InternalMetadata Load (0.4ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
TRANSACTION (1.1ms)  BEGIN
ActiveRecord::InternalMetadata Update (0.4ms)  UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3  [["value", "test"], ["updated_at", "2022-07-17 21:01:43.452382"], ["key", "environment"]]
TRANSACTION (1.1ms)  COMMIT
ActiveRecord::InternalMetadata Load (0.3ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "schema_sha1"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
ActiveRecord::InternalMetadata Create (0.3ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"  [["key", "schema_sha1"], ["value", "a79896619f224c75aaa3902e58c816f0f0e74f8b"], ["created_at", "2022-07-17 21:01:43.465615"], ["updated_at", "2022-07-17 21:01:43.465615"]]
TRANSACTION (1.1ms)  COMMIT
ActiveRecord::SchemaMigration Pluck (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
TRANSACTION (0.2ms)  BEGIN
User Exists? (0.6ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]
User Create (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "alvaro@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Alvaro"], ["last_name", "Torres"], ["address", "448 Ed Turnpike"], ["phone", "509209886"], ["role", 1], ["created_at", "2022-07-17 21:01:44.003383"], ["updated_at", "2022-07-17 21:01:44.003383"]]
TRANSACTION (41.5ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Exists? (0.4ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "support@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "support@mail.com"], ["LIMIT", 1]]
User Create (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "support@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Cicely"], ["last_name", "Kassulke"], ["address", "411 Darrick Avenue"], ["phone", "041771215"], ["role", 1], ["created_at", "2022-07-17 21:01:44.270774"], ["updated_at", "2022-07-17 21:01:44.270774"]]
TRANSACTION (1.3ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Exists? (0.3ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]
User Create (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test1@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Hong"], ["last_name", "Pouros"], ["address", "57700 Deandre Walks"], ["phone", "405620854"], ["role", 0], ["created_at", "2022-07-17 21:01:44.498076"], ["updated_at", "2022-07-17 21:01:44.498076"]]
TRANSACTION (1.1ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Exists? (0.3ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test2@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test2@mail.com"], ["LIMIT", 1]]
User Create (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test2@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Angel"], ["last_name", "Kassulke"], ["address", "377 Morar Unions"], ["phone", "598959649"], ["role", 0], ["created_at", "2022-07-17 21:01:44.720634"], ["updated_at", "2022-07-17 21:01:44.720634"]]
TRANSACTION (1.3ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Exists? (0.2ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test3@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test3@mail.com"], ["LIMIT", 1]]
User Create (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test3@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Rolande"], ["last_name", "Stark"], ["address", "3185 Eusebio Ports"], ["phone", "130728557"], ["role", 0], ["created_at", "2022-07-17 21:01:44.941710"], ["updated_at", "2022-07-17 21:01:44.941710"]]
TRANSACTION (1.1ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Exists? (0.3ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test4@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test4@mail.com"], ["LIMIT", 1]]
User Create (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test4@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Roosevelt"], ["last_name", "Rempel"], ["address", "976 McDermott Gardens"], ["phone", "553742281"], ["role", 0], ["created_at", "2022-07-17 21:01:45.164237"], ["updated_at", "2022-07-17 21:01:45.164237"]]
TRANSACTION (23.3ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Exists? (0.2ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test5@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test5@mail.com"], ["LIMIT", 1]]
User Create (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test5@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Brittany"], ["last_name", "Spencer"], ["address", "56316 Edison Streets"], ["phone", "245715804"], ["role", 0], ["created_at", "2022-07-17 21:01:45.406742"], ["updated_at", "2022-07-17 21:01:45.406742"]]
TRANSACTION (5.5ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Tag Create (0.6ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "chips"], ["created_at", "2022-07-17 21:01:45.431514"], ["updated_at", "2022-07-17 21:01:45.431514"]]
TRANSACTION (1.2ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.2ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "soda"], ["created_at", "2022-07-17 21:01:45.441600"], ["updated_at", "2022-07-17 21:01:45.441600"]]
TRANSACTION (34.9ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Tag Create (0.2ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "beer"], ["created_at", "2022-07-17 21:01:45.482078"], ["updated_at", "2022-07-17 21:01:45.482078"]]
TRANSACTION (1.0ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.2ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "cookies"], ["created_at", "2022-07-17 21:01:45.489164"], ["updated_at", "2022-07-17 21:01:45.489164"]]
TRANSACTION (1.0ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.3ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "chocolates"], ["created_at", "2022-07-17 21:01:45.495534"], ["updated_at", "2022-07-17 21:01:45.495534"]]
TRANSACTION (31.8ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.3ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "snack"], ["created_at", "2022-07-17 21:01:45.532668"], ["updated_at", "2022-07-17 21:01:45.532668"]]
TRANSACTION (11.0ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.3ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "beverage"], ["created_at", "2022-07-17 21:01:45.549817"], ["updated_at", "2022-07-17 21:01:45.549817"]]
TRANSACTION (10.0ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "doritos"], ["LIMIT", 1]]
Product Create (0.5ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "doritos"], ["description", "Flavored tortilla chips"], ["price", "7.0"], ["stock", 50], ["created_at", "2022-07-17 21:01:45.591888"], ["updated_at", "2022-07-17 21:01:45.591888"], ["likes_count", 0]]
TRANSACTION (12.0ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.5ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 1], ["tag_id", 1]]
TRANSACTION (20.3ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.5ms)  BEGIN
Product::HABTM_Tags Create (0.4ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 1], ["tag_id", 6]]
TRANSACTION (7.5ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "pringles"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "pringles"], ["description", "Stackable potato-based crisps"], ["price", "22.0"], ["stock", 25], ["created_at", "2022-07-17 21:01:45.671481"], ["updated_at", "2022-07-17 21:01:45.671481"], ["likes_count", 0]]
TRANSACTION (4.4ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (2.6ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 2], ["tag_id", 1]]
TRANSACTION (4.9ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 2], ["tag_id", 6]]
TRANSACTION (7.4ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "lay's"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "lay's"], ["description", "Potato chips"], ["price", "4.0"], ["stock", 70], ["created_at", "2022-07-17 21:01:45.720623"], ["updated_at", "2022-07-17 21:01:45.720623"], ["likes_count", 0]]
TRANSACTION (8.1ms)  COMMIT
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 3], ["tag_id", 1]]
TRANSACTION (15.0ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 3], ["tag_id", 6]]
TRANSACTION (26.2ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "takis"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "takis"], ["description", "Rolled, corn tortilla chip"], ["price", "12.0"], ["stock", 30], ["created_at", "2022-07-17 21:01:45.795213"], ["updated_at", "2022-07-17 21:01:45.795213"], ["likes_count", 0]]
TRANSACTION (8.6ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 4], ["tag_id", 1]]
TRANSACTION (8.6ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 4], ["tag_id", 6]]
TRANSACTION (8.9ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "ruffles"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "ruffles"], ["description", "Ruffled (crinkle-cut) potato chips"], ["price", "18.0"], ["stock", 60], ["created_at", "2022-07-17 21:01:45.869721"], ["updated_at", "2022-07-17 21:01:45.869721"], ["likes_count", 0]]
TRANSACTION (7.9ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 5], ["tag_id", 1]]
TRANSACTION (25.8ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.6ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 5], ["tag_id", 6]]
TRANSACTION (7.5ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "coca cola"], ["LIMIT", 1]]
Product Create (0.2ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "coca cola"], ["description", "Carbonated soft drink"], ["price", "8.0"], ["stock", 50], ["created_at", "2022-07-17 21:01:45.938329"], ["updated_at", "2022-07-17 21:01:45.938329"], ["likes_count", 0]]
TRANSACTION (7.2ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 6], ["tag_id", 2]]
TRANSACTION (7.7ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 6], ["tag_id", 7]]
TRANSACTION (8.3ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "pepsi"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "pepsi"], ["description", "Carbonated soft drink"], ["price", "7.5"], ["stock", 25], ["created_at", "2022-07-17 21:01:45.988248"], ["updated_at", "2022-07-17 21:01:45.988248"], ["likes_count", 0]]
TRANSACTION (7.3ms)  COMMIT
Tag Load (0.1ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 7], ["tag_id", 2]]
TRANSACTION (7.9ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 7], ["tag_id", 7]]
TRANSACTION (8.2ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "dr pepper"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "dr pepper"], ["description", "Carbonated soft drink"], ["price", "6.5"], ["stock", 70], ["created_at", "2022-07-17 21:01:46.038261"], ["updated_at", "2022-07-17 21:01:46.038261"], ["likes_count", 0]]
TRANSACTION (7.1ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 8], ["tag_id", 2]]
TRANSACTION (6.8ms)  COMMIT
Tag Load (0.1ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 8], ["tag_id", 7]]
TRANSACTION (15.9ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "mountain dew"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "mountain dew"], ["description", "Carbonated soft drink"], ["price", "9.5"], ["stock", 30], ["created_at", "2022-07-17 21:01:46.095525"], ["updated_at", "2022-07-17 21:01:46.095525"], ["likes_count", 0]]
TRANSACTION (25.2ms)  COMMIT
Tag Load (0.1ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 9], ["tag_id", 2]]
TRANSACTION (8.0ms)  COMMIT
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.5ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 9], ["tag_id", 7]]
TRANSACTION (16.0ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "sprite"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "sprite"], ["description", "Carbonated soft drink"], ["price", "5.5"], ["stock", 60], ["created_at", "2022-07-17 21:01:46.188615"], ["updated_at", "2022-07-17 21:01:46.188615"], ["likes_count", 0]]
TRANSACTION (23.1ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 10], ["tag_id", 2]]
TRANSACTION (4.8ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 10], ["tag_id", 7]]
TRANSACTION (6.1ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "stella artois"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "stella artois"], ["description", "Pilsner beer"], ["price", "25.0"], ["stock", 50], ["created_at", "2022-07-17 21:01:46.256471"], ["updated_at", "2022-07-17 21:01:46.256471"], ["likes_count", 0]]
TRANSACTION (5.0ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 11], ["tag_id", 3]]
TRANSACTION (5.0ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 11], ["tag_id", 7]]
TRANSACTION (24.3ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "corona"], ["LIMIT", 1]]
Product Create (0.8ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "corona"], ["description", "Beer"], ["price", "12.5"], ["stock", 25], ["created_at", "2022-07-17 21:01:46.343962"], ["updated_at", "2022-07-17 21:01:46.343962"], ["likes_count", 0]]
TRANSACTION (16.4ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 12], ["tag_id", 3]]
TRANSACTION (1.5ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 12], ["tag_id", 7]]
TRANSACTION (2.4ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "heineken"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "heineken"], ["description", "Pale lager beer"], ["price", "15.5"], ["stock", 70], ["created_at", "2022-07-17 21:01:46.407200"], ["updated_at", "2022-07-17 21:01:46.407200"], ["likes_count", 0]]
TRANSACTION (11.9ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 13], ["tag_id", 3]]
TRANSACTION (31.3ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 13], ["tag_id", 7]]
TRANSACTION (10.6ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "budweiser"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "budweiser"], ["description", " American-style pale lager"], ["price", "13.5"], ["stock", 30], ["created_at", "2022-07-17 21:01:46.492261"], ["updated_at", "2022-07-17 21:01:46.492261"], ["likes_count", 0]]
TRANSACTION (3.1ms)  COMMIT
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 14], ["tag_id", 3]]
TRANSACTION (6.4ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 14], ["tag_id", 7]]
TRANSACTION (7.9ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "guinness"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "guinness"], ["description", " Irish dry stout"], ["price", "31.5"], ["stock", 60], ["created_at", "2022-07-17 21:01:46.545042"], ["updated_at", "2022-07-17 21:01:46.545042"], ["likes_count", 0]]
TRANSACTION (20.9ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.4ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 15], ["tag_id", 3]]
TRANSACTION (1.2ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.3ms)  BEGIN
Product::HABTM_Tags Create (0.4ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 15], ["tag_id", 7]]
TRANSACTION (14.9ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "oreo"], ["LIMIT", 1]]
Product Create (0.5ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "oreo"], ["description", "Sandwich cookie"], ["price", "3.0"], ["stock", 50], ["created_at", "2022-07-17 21:01:46.677201"], ["updated_at", "2022-07-17 21:01:46.677201"], ["likes_count", 0]]
TRANSACTION (17.1ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "cookies"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 16], ["tag_id", 4]]
TRANSACTION (0.9ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 16], ["tag_id", 6]]
TRANSACTION (28.0ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "chips ahoy!"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "chips ahoy!"], ["description", " Chocolate chip cookie"], ["price", "2.5"], ["stock", 25], ["created_at", "2022-07-17 21:01:46.796096"], ["updated_at", "2022-07-17 21:01:46.796096"], ["likes_count", 0]]
TRANSACTION (7.5ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "cookies"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 17], ["tag_id", 4]]
TRANSACTION (7.6ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 17], ["tag_id", 6]]
TRANSACTION (8.6ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "m&m's"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "m&m's"], ["description", "Multi-colored button-shaped chocolates"], ["price", "5.0"], ["stock", 70], ["created_at", "2022-07-17 21:01:46.845155"], ["updated_at", "2022-07-17 21:01:46.845155"], ["likes_count", 0]]
TRANSACTION (8.7ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chocolates"], ["LIMIT", 1]]
TRANSACTION (0.6ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 18], ["tag_id", 5]]
TRANSACTION (5.8ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 18], ["tag_id", 6]]
TRANSACTION (6.8ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "ritz crackers"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "ritz crackers"], ["description", " Snack cracker"], ["price", "2.5"], ["stock", 30], ["created_at", "2022-07-17 21:01:46.897310"], ["updated_at", "2022-07-17 21:01:46.897310"], ["likes_count", 0]]
TRANSACTION (6.0ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "cookies"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 19], ["tag_id", 4]]
TRANSACTION (5.9ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 19], ["tag_id", 6]]
TRANSACTION (6.7ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "oreo thins"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "oreo thins"], ["description", "Thinner sandwich cookie"], ["price", "3.5"], ["stock", 60], ["created_at", "2022-07-17 21:01:46.947013"], ["updated_at", "2022-07-17 21:01:46.947013"], ["likes_count", 0]]
TRANSACTION (6.2ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "cookies"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 20], ["tag_id", 4]]
TRANSACTION (5.5ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 20], ["tag_id", 6]]
TRANSACTION (8.4ms)  COMMIT
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 10], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 2], ["product_id", 10], ["LIMIT", 1]]
Like Create (1.2ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 2], ["product_id", 10], ["created_at", "2022-07-17 21:01:47.035569"], ["updated_at", "2022-07-17 21:01:47.035569"]]
Product Update All (0.5ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (20.9ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.5ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 10], ["created_at", "2022-07-17 21:01:47.083648"], ["updated_at", "2022-07-17 21:01:47.083648"]]
Product Update All (0.5ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (24.6ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 4], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.5ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 4], ["product_id", 10], ["created_at", "2022-07-17 21:01:47.125492"], ["updated_at", "2022-07-17 21:01:47.125492"]]
Product Update All (0.2ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (17.5ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 5], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 5], ["product_id", 10], ["created_at", "2022-07-17 21:01:47.158553"], ["updated_at", "2022-07-17 21:01:47.158553"]]
Product Update All (0.2ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (24.8ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
Like Exists? (0.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 6], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 6], ["product_id", 10], ["created_at", "2022-07-17 21:01:47.198621"], ["updated_at", "2022-07-17 21:01:47.198621"]]
Product Update All (0.2ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (18.7ms)  COMMIT
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 15], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
Like Exists? (0.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 15], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 15], ["created_at", "2022-07-17 21:01:47.234939"], ["updated_at", "2022-07-17 21:01:47.234939"]]
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 15]]
TRANSACTION (23.2ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 4], ["product_id", 15], ["LIMIT", 1]]
Like Create (0.3ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 4], ["product_id", 15], ["created_at", "2022-07-17 21:01:47.274917"], ["updated_at", "2022-07-17 21:01:47.274917"]]
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 15]]
TRANSACTION (17.8ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 5], ["product_id", 15], ["LIMIT", 1]]
Like Create (0.3ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 5], ["product_id", 15], ["created_at", "2022-07-17 21:01:47.308614"], ["updated_at", "2022-07-17 21:01:47.308614"]]
Product Update All (0.2ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 15]]
TRANSACTION (8.6ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 6], ["product_id", 15], ["LIMIT", 1]]
Like Create (0.3ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 6], ["product_id", 15], ["created_at", "2022-07-17 21:01:47.332547"], ["updated_at", "2022-07-17 21:01:47.332547"]]
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 15]]
TRANSACTION (26.5ms)  COMMIT
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 2], ["product_id", 3], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 2], ["product_id", 3], ["created_at", "2022-07-17 21:01:47.377588"], ["updated_at", "2022-07-17 21:01:47.377588"]]
Product Update All (0.2ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 3]]
TRANSACTION (17.1ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 3], ["LIMIT", 1]]
Like Create (0.3ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 3], ["created_at", "2022-07-17 21:01:47.415200"], ["updated_at", "2022-07-17 21:01:47.415200"]]
Product Update All (0.2ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 3]]
TRANSACTION (28.1ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 4], ["product_id", 3], ["LIMIT", 1]]
Like Create (0.6ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 4], ["product_id", 3], ["created_at", "2022-07-17 21:01:47.469580"], ["updated_at", "2022-07-17 21:01:47.469580"]]
Product Update All (0.5ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 3]]
TRANSACTION (8.2ms)  COMMIT
User Load (0.6ms)  SELECT "users".* FROM "users"

Started GET “/” for 127.0.0.1 at 2022-07-17 16:05:32 -0500

ActiveRecord::SchemaMigration Pluck (3.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 27.2ms | Allocations: 14287)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 485.7ms | Allocations: 287277)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2063)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 21.5ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1837)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1818)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 697.1ms | Allocations: 343337)
Rendered layout layouts/application.html.erb (Duration: 798.0ms | Allocations: 398704)

Completed 200 OK in 959ms (Views: 779.0ms | ActiveRecord: 32.3ms | Allocations: 422392)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-17 16:05:34 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 4.8ms | Allocations: 724)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 22.9ms | Allocations: 3529)
Rendered layout layouts/application.html.erb (Duration: 39.7ms | Allocations: 11448)

Completed 200 OK in 74ms (Views: 43.4ms | ActiveRecord: 3.5ms | Allocations: 19340)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-17 16:05:40 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"alvaro@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 264ms (ActiveRecord: 0.7ms | Allocations: 4671)

Started GET “/” for 127.0.0.1 at 2022-07-17 16:05:40 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.3ms | Allocations: 8634)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2456)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 1494)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1493)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1493)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1493)
Rendered products/index.html.erb within layouts/application (Duration: 132.1ms | Allocations: 42307)
Rendered layout layouts/application.html.erb (Duration: 186.4ms | Allocations: 50091)

Completed 200 OK in 192ms (Views: 177.0ms | ActiveRecord: 10.5ms | Allocations: 51749)

Started GET “/products/2/edit” for 127.0.0.1 at 2022-07-17 16:05:42 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"2"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (2.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 3.7ms | Allocations: 1852)
Rendered products/edit.html.erb within layouts/application (Duration: 7.7ms | Allocations: 2149)
Rendered layout layouts/application.html.erb (Duration: 31.9ms | Allocations: 9839)

Completed 200 OK in 53ms (Views: 35.4ms | ActiveRecord: 2.5ms | Allocations: 12295)

Started PATCH “/products/2” for 127.0.0.1 at 2022-07-17 16:05:43 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"pringles", "description"=>"Stackable potato-based crisps", "price"=>"22.0", "stock"=>"25"}, "commit"=>"Update", "id"=>"2"}
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'

Unpermitted parameters: :name, :description, :price, :stock. Context: { controller: ProductsController, action: update, request: #<ActionDispatch::Request:0x00007fc9a68d8110>, params: {“_method”=>“patch”, “authenticity_token”=>“”, “product”=>{“name”=>“pringles”, “description”=>“Stackable potato-based crisps”, “price”=>“22.0”, “stock”=>“25”}, “commit”=>“Update”, “controller”=>“products”, “action”=>“update”, “id”=>“2”} }

TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/products_controller.rb:44:in `update'
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 AND "products"."id" != $2 LIMIT $3  [["name", "pringles"], ["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:44:in `update'
TRANSACTION (0.2ms)  COMMIT
↳ app/controllers/products_controller.rb:44:in `update'

Redirected to localhost:3000/products Completed 302 Found in 17ms (ActiveRecord: 1.6ms | Allocations: 4744)

Started GET “/products” for 127.0.0.1 at 2022-07-17 16:05:43 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 7.4ms | Allocations: 8571)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2333)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1494)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1493)
Rendered products/index.html.erb within layouts/application (Duration: 120.1ms | Allocations: 42054)
Rendered layout layouts/application.html.erb (Duration: 136.9ms | Allocations: 49740)

Completed 200 OK in 142ms (Views: 130.4ms | ActiveRecord: 7.6ms | Allocations: 51084)

Started GET “/products/2/edit” for 127.0.0.1 at 2022-07-17 16:05:44 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"2"}
Product Load (0.9ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 3.6ms | Allocations: 1331)
Rendered products/edit.html.erb within layouts/application (Duration: 4.2ms | Allocations: 1413)
Rendered layout layouts/application.html.erb (Duration: 23.1ms | Allocations: 9083)

Completed 200 OK in 36ms (Views: 25.0ms | ActiveRecord: 1.3ms | Allocations: 10856)

Started PATCH “/products/2” for 127.0.0.1 at 2022-07-17 16:05:47 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"pringles", "description"=>"Stackable potato-based crisps", "price"=>"24", "stock"=>"25"}, "commit"=>"Update", "id"=>"2"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'

Unpermitted parameters: :name, :description, :price, :stock. Context: { controller: ProductsController, action: update, request: #<ActionDispatch::Request:0x00007fc9a51c2de0>, params: {“_method”=>“patch”, “authenticity_token”=>“”, “product”=>{“name”=>“pringles”, “description”=>“Stackable potato-based crisps”, “price”=>“24”, “stock”=>“25”}, “commit”=>“Update”, “controller”=>“products”, “action”=>“update”, “id”=>“2”} }

TRANSACTION (0.5ms)  BEGIN
↳ app/controllers/products_controller.rb:44:in `update'
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 AND "products"."id" != $2 LIMIT $3  [["name", "pringles"], ["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:44:in `update'
TRANSACTION (0.2ms)  COMMIT
↳ app/controllers/products_controller.rb:44:in `update'

Redirected to localhost:3000/products Completed 302 Found in 19ms (ActiveRecord: 2.4ms | Allocations: 3958)

Started GET “/products” for 127.0.0.1 at 2022-07-17 16:05:47 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (1.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.2ms | Allocations: 8567)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2333)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1494)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1494)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1493)
Tag Load (3.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1493)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1493)
Rendered products/index.html.erb within layouts/application (Duration: 152.8ms | Allocations: 42050)
Rendered layout layouts/application.html.erb (Duration: 174.7ms | Allocations: 49715)

Completed 200 OK in 183ms (Views: 153.9ms | ActiveRecord: 23.8ms | Allocations: 51058)

Started GET “/products/2/edit” for 127.0.0.1 at 2022-07-17 16:05:48 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"2"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (1.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 8.1ms | Allocations: 1331)
Rendered products/edit.html.erb within layouts/application (Duration: 8.8ms | Allocations: 1413)
Rendered layout layouts/application.html.erb (Duration: 29.3ms | Allocations: 9078)

Completed 200 OK in 40ms (Views: 31.2ms | ActiveRecord: 1.8ms | Allocations: 10863)

Started PATCH “/products/2” for 127.0.0.1 at 2022-07-17 16:05:50 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"pringles", "description"=>"Stackable potato-based crisps", "price"=>"28", "stock"=>"25"}, "commit"=>"Update", "id"=>"2"}
Product Load (4.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'
User Load (1.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:71:in `set_product'

Unpermitted parameters: :name, :description, :price, :stock. Context: { controller: ProductsController, action: update, request: #<ActionDispatch::Request:0x00007fc9a4e7c960>, params: {“_method”=>“patch”, “authenticity_token”=>“”, “product”=>{“name”=>“pringles”, “description”=>“Stackable potato-based crisps”, “price”=>“28”, “stock”=>“25”}, “commit”=>“Update”, “controller”=>“products”, “action”=>“update”, “id”=>“2”} }

TRANSACTION (0.5ms)  BEGIN
↳ app/controllers/products_controller.rb:44:in `update'
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 AND "products"."id" != $2 LIMIT $3  [["name", "pringles"], ["id", 2], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:44:in `update'
TRANSACTION (0.2ms)  COMMIT
↳ app/controllers/products_controller.rb:44:in `update'

Redirected to localhost:3000/products Completed 302 Found in 26ms (ActiveRecord: 6.6ms | Allocations: 3993)

Started GET “/products” for 127.0.0.1 at 2022-07-17 16:05:50 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.9ms | Allocations: 8570)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2333)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1493)
Rendered products/index.html.erb within layouts/application (Duration: 146.4ms | Allocations: 42053)
Rendered layout layouts/application.html.erb (Duration: 159.5ms | Allocations: 49742)

Completed 200 OK in 169ms (Views: 152.3ms | ActiveRecord: 8.9ms | Allocations: 51099)

User Load (0.5ms)  SELECT "users".* FROM "users"
ActiveRecord::SchemaMigration Pluck (0.5ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
ActiveRecord::InternalMetadata Pluck (0.5ms)  SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
ActiveRecord::SchemaMigration Pluck (0.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
ActiveRecord::InternalMetadata Pluck (0.2ms)  SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
ActiveRecord::SchemaMigration Pluck (0.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
ActiveRecord::InternalMetadata Pluck (0.3ms)  SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
 (4533.8ms)  DROP DATABASE IF EXISTS "store_development"
 (19.9ms)  DROP DATABASE IF EXISTS "store_test"
 (157.3ms)  CREATE DATABASE "store_development" ENCODING = 'unicode'
 (170.3ms)  CREATE DATABASE "store_test" ENCODING = 'unicode'
SQL (0.3ms)  CREATE EXTENSION IF NOT EXISTS "plpgsql"
 (0.2ms)  DROP TABLE IF EXISTS "comments" CASCADE
 (9.5ms)  CREATE TABLE "comments" ("id" bigserial primary key, "body" text, "rate" integer DEFAULT 0, "user_id" bigint NOT NULL, "commentable_type" character varying NOT NULL, "commentable_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "approved" boolean DEFAULT FALSE)
 (3.2ms)  CREATE INDEX "index_comments_on_commentable" ON "comments" ("commentable_type", "commentable_id")
 (3.8ms)  CREATE INDEX "index_comments_on_user_id" ON "comments" ("user_id")
 (0.3ms)  DROP TABLE IF EXISTS "likes" CASCADE
 (5.3ms)  CREATE TABLE "likes" ("id" bigserial primary key, "user_id" bigint NOT NULL, "product_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (3.0ms)  CREATE INDEX "index_likes_on_product_id" ON "likes" ("product_id")
 (5.5ms)  CREATE UNIQUE INDEX "index_likes_on_user_id_and_product_id" ON "likes" ("user_id", "product_id")
 (3.2ms)  CREATE INDEX "index_likes_on_user_id" ON "likes" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "logs" CASCADE
 (5.7ms)  CREATE TABLE "logs" ("id" bigserial primary key, "loggable_type" character varying, "loggable_id" bigint, "attr" character varying, "old_val" character varying, "new_val" character varying, "user_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (5.5ms)  CREATE INDEX "index_logs_on_loggable" ON "logs" ("loggable_type", "loggable_id")
 (2.4ms)  CREATE INDEX "index_logs_on_user_id" ON "logs" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "order_lines" CASCADE
 (5.3ms)  CREATE TABLE "order_lines" ("id" bigserial primary key, "order_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" integer, "total" decimal(5,2), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.8ms)  CREATE INDEX "index_order_lines_on_order_id" ON "order_lines" ("order_id")
 (2.7ms)  CREATE INDEX "index_order_lines_on_product_id" ON "order_lines" ("product_id")
 (0.1ms)  DROP TABLE IF EXISTS "orders" CASCADE
 (4.2ms)  CREATE TABLE "orders" ("id" bigserial primary key, "date" date, "user_id" bigint, "total" decimal(6,2), "status" integer DEFAULT 0, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.6ms)  CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
 (0.1ms)  DROP TABLE IF EXISTS "products" CASCADE
 (5.0ms)  CREATE TABLE "products" ("id" bigserial primary key, "name" character varying, "description" character varying, "price" decimal(5,2), "stock" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "likes_count" integer DEFAULT 0)
 (0.2ms)  DROP TABLE IF EXISTS "products_tags" CASCADE
 (1.1ms)  CREATE TABLE "products_tags" ("product_id" bigint NOT NULL, "tag_id" bigint NOT NULL)
 (2.4ms)  CREATE INDEX "index_products_tags_on_product_id" ON "products_tags" ("product_id")
 (3.3ms)  CREATE INDEX "index_products_tags_on_tag_id" ON "products_tags" ("tag_id")
 (0.1ms)  DROP TABLE IF EXISTS "tags" CASCADE
 (10.0ms)  CREATE TABLE "tags" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (0.2ms)  DROP TABLE IF EXISTS "users" CASCADE
 (7.8ms)  CREATE TABLE "users" ("id" bigserial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp(6), "remember_created_at" timestamp(6), "first_name" character varying, "last_name" character varying, "address" character varying, "phone" character varying, "role" integer DEFAULT 0, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.7ms)  CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
 (2.9ms)  CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
 (2.5ms)  ALTER TABLE "comments" ADD CONSTRAINT "fk_rails_03de2dc08c"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (1.9ms)  ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_f7ed05ee50"

FOREIGN KEY (“product_id”)

REFERENCES "products" ("id")



 (1.7ms)  ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_1e09b5dabf"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (1.7ms)  ALTER TABLE "logs" ADD CONSTRAINT "fk_rails_8fc980bf44"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (2.2ms)  ALTER TABLE "order_lines" ADD CONSTRAINT "fk_rails_e6c763ee60"

FOREIGN KEY (“order_id”)

REFERENCES "orders" ("id")



 (1.7ms)  ALTER TABLE "order_lines" ADD CONSTRAINT "fk_rails_83e960fa54"

FOREIGN KEY (“product_id”)

REFERENCES "products" ("id")



 (1.7ms)  ALTER TABLE "orders" ADD CONSTRAINT "fk_rails_f868b47f6a"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (5.9ms)  CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
ActiveRecord::SchemaMigration Pluck (0.5ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (1.2ms)  INSERT INTO "schema_migrations" (version) VALUES (20220717072459)
 (1.1ms)  INSERT INTO "schema_migrations" (version) VALUES

(20220702233559), (20220702235959), (20220703000346), (20220703000538), (20220703002134), (20220703002541), (20220704010436), (20220704194659), (20220710000751), (20220710000931), (20220710003850), (20220710005152), (20220710005930), (20220710025851);



 (5.2ms)  CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
ActiveRecord::InternalMetadata Load (0.4ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
ActiveRecord::InternalMetadata Create (0.4ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"  [["key", "environment"], ["value", "development"], ["created_at", "2022-07-17 21:06:50.250475"], ["updated_at", "2022-07-17 21:06:50.250475"]]
TRANSACTION (0.9ms)  COMMIT
ActiveRecord::InternalMetadata Load (0.2ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
ActiveRecord::InternalMetadata Load (0.2ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "schema_sha1"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
ActiveRecord::InternalMetadata Create (0.3ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"  [["key", "schema_sha1"], ["value", "a79896619f224c75aaa3902e58c816f0f0e74f8b"], ["created_at", "2022-07-17 21:06:50.262690"], ["updated_at", "2022-07-17 21:06:50.262690"]]
TRANSACTION (0.8ms)  COMMIT
SQL (0.2ms)  CREATE EXTENSION IF NOT EXISTS "plpgsql"
 (0.2ms)  DROP TABLE IF EXISTS "comments" CASCADE
 (8.5ms)  CREATE TABLE "comments" ("id" bigserial primary key, "body" text, "rate" integer DEFAULT 0, "user_id" bigint NOT NULL, "commentable_type" character varying NOT NULL, "commentable_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "approved" boolean DEFAULT FALSE)
 (3.0ms)  CREATE INDEX "index_comments_on_commentable" ON "comments" ("commentable_type", "commentable_id")
 (2.6ms)  CREATE INDEX "index_comments_on_user_id" ON "comments" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "likes" CASCADE
 (4.3ms)  CREATE TABLE "likes" ("id" bigserial primary key, "user_id" bigint NOT NULL, "product_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.3ms)  CREATE INDEX "index_likes_on_product_id" ON "likes" ("product_id")
 (2.2ms)  CREATE UNIQUE INDEX "index_likes_on_user_id_and_product_id" ON "likes" ("user_id", "product_id")
 (2.8ms)  CREATE INDEX "index_likes_on_user_id" ON "likes" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "logs" CASCADE
 (5.2ms)  CREATE TABLE "logs" ("id" bigserial primary key, "loggable_type" character varying, "loggable_id" bigint, "attr" character varying, "old_val" character varying, "new_val" character varying, "user_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.3ms)  CREATE INDEX "index_logs_on_loggable" ON "logs" ("loggable_type", "loggable_id")
 (2.6ms)  CREATE INDEX "index_logs_on_user_id" ON "logs" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "order_lines" CASCADE
 (3.7ms)  CREATE TABLE "order_lines" ("id" bigserial primary key, "order_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" integer, "total" decimal(5,2), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (3.1ms)  CREATE INDEX "index_order_lines_on_order_id" ON "order_lines" ("order_id")
 (2.2ms)  CREATE INDEX "index_order_lines_on_product_id" ON "order_lines" ("product_id")
 (0.2ms)  DROP TABLE IF EXISTS "orders" CASCADE
 (3.4ms)  CREATE TABLE "orders" ("id" bigserial primary key, "date" date, "user_id" bigint, "total" decimal(6,2), "status" integer DEFAULT 0, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.4ms)  CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "products" CASCADE
 (5.0ms)  CREATE TABLE "products" ("id" bigserial primary key, "name" character varying, "description" character varying, "price" decimal(5,2), "stock" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "likes_count" integer DEFAULT 0)
 (0.2ms)  DROP TABLE IF EXISTS "products_tags" CASCADE
 (1.2ms)  CREATE TABLE "products_tags" ("product_id" bigint NOT NULL, "tag_id" bigint NOT NULL)
 (2.2ms)  CREATE INDEX "index_products_tags_on_product_id" ON "products_tags" ("product_id")
 (2.4ms)  CREATE INDEX "index_products_tags_on_tag_id" ON "products_tags" ("tag_id")
 (0.2ms)  DROP TABLE IF EXISTS "tags" CASCADE
 (5.6ms)  CREATE TABLE "tags" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (0.2ms)  DROP TABLE IF EXISTS "users" CASCADE
 (5.8ms)  CREATE TABLE "users" ("id" bigserial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp(6), "remember_created_at" timestamp(6), "first_name" character varying, "last_name" character varying, "address" character varying, "phone" character varying, "role" integer DEFAULT 0, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (3.6ms)  CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
 (2.7ms)  CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
 (2.3ms)  ALTER TABLE "comments" ADD CONSTRAINT "fk_rails_03de2dc08c"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (2.3ms)  ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_f7ed05ee50"

FOREIGN KEY (“product_id”)

REFERENCES "products" ("id")



 (1.6ms)  ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_1e09b5dabf"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (1.7ms)  ALTER TABLE "logs" ADD CONSTRAINT "fk_rails_8fc980bf44"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (2.3ms)  ALTER TABLE "order_lines" ADD CONSTRAINT "fk_rails_e6c763ee60"

FOREIGN KEY (“order_id”)

REFERENCES "orders" ("id")



 (1.7ms)  ALTER TABLE "order_lines" ADD CONSTRAINT "fk_rails_83e960fa54"

FOREIGN KEY (“product_id”)

REFERENCES "products" ("id")



 (1.6ms)  ALTER TABLE "orders" ADD CONSTRAINT "fk_rails_f868b47f6a"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (4.5ms)  CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
ActiveRecord::SchemaMigration Pluck (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (1.0ms)  INSERT INTO "schema_migrations" (version) VALUES (20220717072459)
 (1.3ms)  INSERT INTO "schema_migrations" (version) VALUES

(20220702233559), (20220702235959), (20220703000346), (20220703000538), (20220703002134), (20220703002541), (20220704010436), (20220704194659), (20220710000751), (20220710000931), (20220710003850), (20220710005152), (20220710005930), (20220710025851);



 (6.4ms)  CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
ActiveRecord::InternalMetadata Load (0.3ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
ActiveRecord::InternalMetadata Create (0.3ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"  [["key", "environment"], ["value", "development"], ["created_at", "2022-07-17 21:06:50.455624"], ["updated_at", "2022-07-17 21:06:50.455624"]]
TRANSACTION (0.9ms)  COMMIT
ActiveRecord::InternalMetadata Load (1.1ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
TRANSACTION (0.4ms)  BEGIN
ActiveRecord::InternalMetadata Update (0.3ms)  UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3  [["value", "test"], ["updated_at", "2022-07-17 21:06:50.468928"], ["key", "environment"]]
TRANSACTION (1.1ms)  COMMIT
ActiveRecord::InternalMetadata Load (0.2ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "schema_sha1"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
ActiveRecord::InternalMetadata Create (0.3ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"  [["key", "schema_sha1"], ["value", "a79896619f224c75aaa3902e58c816f0f0e74f8b"], ["created_at", "2022-07-17 21:06:50.479173"], ["updated_at", "2022-07-17 21:06:50.479173"]]
TRANSACTION (0.9ms)  COMMIT
ActiveRecord::SchemaMigration Pluck (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
TRANSACTION (5.6ms)  BEGIN
User Exists? (0.8ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]
User Create (1.1ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "alvaro@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Alvaro"], ["last_name", "Torres"], ["address", "8625 Clinton Springs"], ["phone", "280583358"], ["role", 1], ["created_at", "2022-07-17 21:06:51.029648"], ["updated_at", "2022-07-17 21:06:51.029648"]]
TRANSACTION (0.9ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Exists? (0.3ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "support@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "support@mail.com"], ["LIMIT", 1]]
User Create (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "support@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Kelsi"], ["last_name", "Pollich"], ["address", "3219 Sylvester Valley"], ["phone", "361685508"], ["role", 2], ["created_at", "2022-07-17 21:06:51.264689"], ["updated_at", "2022-07-17 21:06:51.264689"]]
TRANSACTION (0.9ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Exists? (0.3ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]
User Create (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test1@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Bebe"], ["last_name", "Bechtelar"], ["address", "713 Temple Forest"], ["phone", "824839199"], ["role", 0], ["created_at", "2022-07-17 21:06:51.493422"], ["updated_at", "2022-07-17 21:06:51.493422"]]
TRANSACTION (1.7ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Exists? (0.2ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test2@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test2@mail.com"], ["LIMIT", 1]]
User Create (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test2@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Jeanene"], ["last_name", "Buckridge"], ["address", "908 Augustine Square"], ["phone", "435776360"], ["role", 0], ["created_at", "2022-07-17 21:06:51.715901"], ["updated_at", "2022-07-17 21:06:51.715901"]]
TRANSACTION (1.1ms)  COMMIT
TRANSACTION (0.4ms)  BEGIN
User Exists? (0.4ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test3@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test3@mail.com"], ["LIMIT", 1]]
User Create (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test3@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Randee"], ["last_name", "Rogahn"], ["address", "388 Rory Oval"], ["phone", "533398765"], ["role", 0], ["created_at", "2022-07-17 21:06:51.935450"], ["updated_at", "2022-07-17 21:06:51.935450"]]
TRANSACTION (1.0ms)  COMMIT
TRANSACTION (0.4ms)  BEGIN
User Exists? (0.4ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test4@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test4@mail.com"], ["LIMIT", 1]]
User Create (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test4@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Penni"], ["last_name", "Willms"], ["address", "15904 Hills Villages"], ["phone", "819870804"], ["role", 0], ["created_at", "2022-07-17 21:06:52.155709"], ["updated_at", "2022-07-17 21:06:52.155709"]]
TRANSACTION (1.2ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
User Exists? (0.4ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test5@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test5@mail.com"], ["LIMIT", 1]]
User Create (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test5@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Marian"], ["last_name", "Renner"], ["address", "7892 Dicki Manors"], ["phone", "571051829"], ["role", 0], ["created_at", "2022-07-17 21:06:52.376053"], ["updated_at", "2022-07-17 21:06:52.376053"]]
TRANSACTION (1.3ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.5ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "chips"], ["created_at", "2022-07-17 21:06:52.397015"], ["updated_at", "2022-07-17 21:06:52.397015"]]
TRANSACTION (22.5ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.2ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "soda"], ["created_at", "2022-07-17 21:06:52.424964"], ["updated_at", "2022-07-17 21:06:52.424964"]]
TRANSACTION (31.0ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.2ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "beer"], ["created_at", "2022-07-17 21:06:52.460863"], ["updated_at", "2022-07-17 21:06:52.460863"]]
TRANSACTION (11.8ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.2ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "cookies"], ["created_at", "2022-07-17 21:06:52.478444"], ["updated_at", "2022-07-17 21:06:52.478444"]]
TRANSACTION (10.6ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.2ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "chocolates"], ["created_at", "2022-07-17 21:06:52.494118"], ["updated_at", "2022-07-17 21:06:52.494118"]]
TRANSACTION (34.4ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.3ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "snack"], ["created_at", "2022-07-17 21:06:52.534378"], ["updated_at", "2022-07-17 21:06:52.534378"]]
TRANSACTION (29.7ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.2ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "beverage"], ["created_at", "2022-07-17 21:06:52.569970"], ["updated_at", "2022-07-17 21:06:52.569970"]]
TRANSACTION (10.8ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "doritos"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "doritos"], ["description", "Flavored tortilla chips"], ["price", "7.0"], ["stock", 50], ["created_at", "2022-07-17 21:06:52.612049"], ["updated_at", "2022-07-17 21:06:52.612049"], ["likes_count", 0]]
TRANSACTION (9.5ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.3ms)  BEGIN
Product::HABTM_Tags Create (0.5ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 1], ["tag_id", 1]]
TRANSACTION (13.3ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.5ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 1], ["tag_id", 6]]
TRANSACTION (8.2ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "pringles"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "pringles"], ["description", "Stackable potato-based crisps"], ["price", "22.0"], ["stock", 25], ["created_at", "2022-07-17 21:06:52.684412"], ["updated_at", "2022-07-17 21:06:52.684412"], ["likes_count", 0]]
TRANSACTION (5.8ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (1.8ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 2], ["tag_id", 1]]
TRANSACTION (3.8ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 2], ["tag_id", 6]]
TRANSACTION (12.5ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "lay's"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "lay's"], ["description", "Potato chips"], ["price", "4.0"], ["stock", 70], ["created_at", "2022-07-17 21:06:52.740213"], ["updated_at", "2022-07-17 21:06:52.740213"], ["likes_count", 0]]
TRANSACTION (25.3ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 3], ["tag_id", 1]]
TRANSACTION (6.1ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 3], ["tag_id", 6]]
TRANSACTION (6.3ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "takis"], ["LIMIT", 1]]
Product Create (0.5ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "takis"], ["description", "Rolled, corn tortilla chip"], ["price", "12.0"], ["stock", 30], ["created_at", "2022-07-17 21:06:52.809524"], ["updated_at", "2022-07-17 21:06:52.809524"], ["likes_count", 0]]
TRANSACTION (5.7ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 4], ["tag_id", 1]]
TRANSACTION (5.8ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 4], ["tag_id", 6]]
TRANSACTION (6.3ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "ruffles"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "ruffles"], ["description", "Ruffled (crinkle-cut) potato chips"], ["price", "18.0"], ["stock", 60], ["created_at", "2022-07-17 21:06:52.859123"], ["updated_at", "2022-07-17 21:06:52.859123"], ["likes_count", 0]]
TRANSACTION (5.9ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.4ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 5], ["tag_id", 1]]
TRANSACTION (25.4ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.3ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 5], ["tag_id", 6]]
TRANSACTION (5.3ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "coca cola"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "coca cola"], ["description", "Carbonated soft drink"], ["price", "8.0"], ["stock", 50], ["created_at", "2022-07-17 21:06:52.951125"], ["updated_at", "2022-07-17 21:06:52.951125"], ["likes_count", 0]]
TRANSACTION (5.6ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 6], ["tag_id", 2]]
TRANSACTION (6.6ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 6], ["tag_id", 7]]
TRANSACTION (6.4ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "pepsi"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "pepsi"], ["description", "Carbonated soft drink"], ["price", "7.5"], ["stock", 25], ["created_at", "2022-07-17 21:06:53.000602"], ["updated_at", "2022-07-17 21:06:53.000602"], ["likes_count", 0]]
TRANSACTION (12.2ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 7], ["tag_id", 2]]
TRANSACTION (25.5ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 7], ["tag_id", 7]]
TRANSACTION (6.6ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "dr pepper"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "dr pepper"], ["description", "Carbonated soft drink"], ["price", "6.5"], ["stock", 70], ["created_at", "2022-07-17 21:06:53.075845"], ["updated_at", "2022-07-17 21:06:53.075845"], ["likes_count", 0]]
TRANSACTION (5.7ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 8], ["tag_id", 2]]
TRANSACTION (6.1ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 8], ["tag_id", 7]]
TRANSACTION (6.6ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "mountain dew"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "mountain dew"], ["description", "Carbonated soft drink"], ["price", "9.5"], ["stock", 30], ["created_at", "2022-07-17 21:06:53.126018"], ["updated_at", "2022-07-17 21:06:53.126018"], ["likes_count", 0]]
TRANSACTION (6.1ms)  COMMIT
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 9], ["tag_id", 2]]
TRANSACTION (4.4ms)  COMMIT
Tag Load (0.1ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 9], ["tag_id", 7]]
TRANSACTION (8.6ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "sprite"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "sprite"], ["description", "Carbonated soft drink"], ["price", "5.5"], ["stock", 60], ["created_at", "2022-07-17 21:06:53.174381"], ["updated_at", "2022-07-17 21:06:53.174381"], ["likes_count", 0]]
TRANSACTION (8.3ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 10], ["tag_id", 2]]
TRANSACTION (8.4ms)  COMMIT
Tag Load (0.1ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 10], ["tag_id", 7]]
TRANSACTION (8.7ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "stella artois"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "stella artois"], ["description", "Pilsner beer"], ["price", "25.0"], ["stock", 50], ["created_at", "2022-07-17 21:06:53.224894"], ["updated_at", "2022-07-17 21:06:53.224894"], ["likes_count", 0]]
TRANSACTION (30.3ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 11], ["tag_id", 3]]
TRANSACTION (1.2ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 11], ["tag_id", 7]]
TRANSACTION (34.6ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "corona"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "corona"], ["description", "Beer"], ["price", "12.5"], ["stock", 25], ["created_at", "2022-07-17 21:06:53.316464"], ["updated_at", "2022-07-17 21:06:53.316464"], ["likes_count", 0]]
TRANSACTION (7.2ms)  COMMIT
Tag Load (0.1ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 12], ["tag_id", 3]]
TRANSACTION (14.1ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 12], ["tag_id", 7]]
TRANSACTION (27.5ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "heineken"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "heineken"], ["description", "Pale lager beer"], ["price", "15.5"], ["stock", 70], ["created_at", "2022-07-17 21:06:53.391358"], ["updated_at", "2022-07-17 21:06:53.391358"], ["likes_count", 0]]
TRANSACTION (7.9ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 13], ["tag_id", 3]]
TRANSACTION (7.7ms)  COMMIT
Tag Load (0.1ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 13], ["tag_id", 7]]
TRANSACTION (8.8ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "budweiser"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "budweiser"], ["description", " American-style pale lager"], ["price", "13.5"], ["stock", 30], ["created_at", "2022-07-17 21:06:53.441286"], ["updated_at", "2022-07-17 21:06:53.441286"], ["likes_count", 0]]
TRANSACTION (7.6ms)  COMMIT
Tag Load (0.1ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 14], ["tag_id", 3]]
TRANSACTION (8.1ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 14], ["tag_id", 7]]
TRANSACTION (9.3ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "guinness"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "guinness"], ["description", " Irish dry stout"], ["price", "31.5"], ["stock", 60], ["created_at", "2022-07-17 21:06:53.496167"], ["updated_at", "2022-07-17 21:06:53.496167"], ["likes_count", 0]]
TRANSACTION (17.0ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 15], ["tag_id", 3]]
TRANSACTION (1.0ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 15], ["tag_id", 7]]
TRANSACTION (9.2ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "oreo"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "oreo"], ["description", "Sandwich cookie"], ["price", "3.0"], ["stock", 50], ["created_at", "2022-07-17 21:06:53.611524"], ["updated_at", "2022-07-17 21:06:53.611524"], ["likes_count", 0]]
TRANSACTION (18.2ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "cookies"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 16], ["tag_id", 4]]
TRANSACTION (1.2ms)  COMMIT
Tag Load (0.1ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 16], ["tag_id", 6]]
TRANSACTION (15.6ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "chips ahoy!"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "chips ahoy!"], ["description", " Chocolate chip cookie"], ["price", "2.5"], ["stock", 25], ["created_at", "2022-07-17 21:06:53.716280"], ["updated_at", "2022-07-17 21:06:53.716280"], ["likes_count", 0]]
TRANSACTION (7.3ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "cookies"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 17], ["tag_id", 4]]
TRANSACTION (8.1ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.5ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 17], ["tag_id", 6]]
TRANSACTION (5.7ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "m&m's"], ["LIMIT", 1]]
Product Create (0.6ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "m&m's"], ["description", "Multi-colored button-shaped chocolates"], ["price", "5.0"], ["stock", 70], ["created_at", "2022-07-17 21:06:53.772127"], ["updated_at", "2022-07-17 21:06:53.772127"], ["likes_count", 0]]
TRANSACTION (21.6ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chocolates"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 18], ["tag_id", 5]]
TRANSACTION (17.7ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 18], ["tag_id", 6]]
TRANSACTION (20.6ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "ritz crackers"], ["LIMIT", 1]]
Product Create (0.6ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "ritz crackers"], ["description", " Snack cracker"], ["price", "2.5"], ["stock", 30], ["created_at", "2022-07-17 21:06:53.891088"], ["updated_at", "2022-07-17 21:06:53.891088"], ["likes_count", 0]]
TRANSACTION (12.8ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "cookies"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.4ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 19], ["tag_id", 4]]
TRANSACTION (18.2ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 19], ["tag_id", 6]]
TRANSACTION (22.4ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "oreo thins"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "oreo thins"], ["description", "Thinner sandwich cookie"], ["price", "3.5"], ["stock", 60], ["created_at", "2022-07-17 21:06:53.994685"], ["updated_at", "2022-07-17 21:06:53.994685"], ["likes_count", 0]]
TRANSACTION (3.0ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "cookies"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 20], ["tag_id", 4]]
TRANSACTION (3.3ms)  COMMIT
Tag Load (0.1ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 20], ["tag_id", 6]]
TRANSACTION (6.8ms)  COMMIT
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 10], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 2], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.7ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 2], ["product_id", 10], ["created_at", "2022-07-17 21:06:54.063458"], ["updated_at", "2022-07-17 21:06:54.063458"]]
Product Update All (0.5ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (4.0ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.6ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 10], ["created_at", "2022-07-17 21:06:54.089041"], ["updated_at", "2022-07-17 21:06:54.089041"]]
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (14.8ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 4], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.8ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 4], ["product_id", 10], ["created_at", "2022-07-17 21:06:54.121862"], ["updated_at", "2022-07-17 21:06:54.121862"]]
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (21.9ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 5], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.5ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 5], ["product_id", 10], ["created_at", "2022-07-17 21:06:54.162385"], ["updated_at", "2022-07-17 21:06:54.162385"]]
Product Update All (0.5ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (15.8ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 6], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 6], ["product_id", 10], ["created_at", "2022-07-17 21:06:54.196483"], ["updated_at", "2022-07-17 21:06:54.196483"]]
Product Update All (0.7ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (21.7ms)  COMMIT
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 15], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 15], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 15], ["created_at", "2022-07-17 21:06:54.236802"], ["updated_at", "2022-07-17 21:06:54.236802"]]
Product Update All (0.5ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 15]]
TRANSACTION (17.1ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 4], ["product_id", 15], ["LIMIT", 1]]
Like Create (0.5ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 4], ["product_id", 15], ["created_at", "2022-07-17 21:06:54.271045"], ["updated_at", "2022-07-17 21:06:54.271045"]]
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 15]]
TRANSACTION (22.2ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 5], ["product_id", 15], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 5], ["product_id", 15], ["created_at", "2022-07-17 21:06:54.309688"], ["updated_at", "2022-07-17 21:06:54.309688"]]
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 15]]
TRANSACTION (19.2ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 6], ["product_id", 15], ["LIMIT", 1]]
Like Create (0.3ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 6], ["product_id", 15], ["created_at", "2022-07-17 21:06:54.348398"], ["updated_at", "2022-07-17 21:06:54.348398"]]
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 15]]
TRANSACTION (19.7ms)  COMMIT
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 2], ["product_id", 3], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 2], ["product_id", 3], ["created_at", "2022-07-17 21:06:54.388299"], ["updated_at", "2022-07-17 21:06:54.388299"]]
Product Update All (0.6ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 3]]
TRANSACTION (15.3ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 3], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 3], ["created_at", "2022-07-17 21:06:54.420587"], ["updated_at", "2022-07-17 21:06:54.420587"]]
Product Update All (0.9ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 3]]
TRANSACTION (21.8ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 4], ["product_id", 3], ["LIMIT", 1]]
Like Create (0.3ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 4], ["product_id", 3], ["created_at", "2022-07-17 21:06:54.460155"], ["updated_at", "2022-07-17 21:06:54.460155"]]
Product Update All (0.5ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 3]]
TRANSACTION (19.0ms)  COMMIT
ActiveRecord::SchemaMigration Pluck (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
ActiveRecord::InternalMetadata Pluck (0.3ms)  SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
ActiveRecord::SchemaMigration Pluck (0.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
ActiveRecord::InternalMetadata Pluck (0.4ms)  SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
ActiveRecord::SchemaMigration Pluck (0.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
ActiveRecord::InternalMetadata Pluck (0.3ms)  SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
 (64.5ms)  DROP DATABASE IF EXISTS "store_development"
 (30.6ms)  DROP DATABASE IF EXISTS "store_test"
 (170.1ms)  CREATE DATABASE "store_development" ENCODING = 'unicode'
 (164.8ms)  CREATE DATABASE "store_test" ENCODING = 'unicode'
SQL (0.3ms)  CREATE EXTENSION IF NOT EXISTS "plpgsql"
 (0.2ms)  DROP TABLE IF EXISTS "comments" CASCADE
 (8.6ms)  CREATE TABLE "comments" ("id" bigserial primary key, "body" text, "rate" integer DEFAULT 0, "user_id" bigint NOT NULL, "commentable_type" character varying NOT NULL, "commentable_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "approved" boolean DEFAULT FALSE)
 (4.0ms)  CREATE INDEX "index_comments_on_commentable" ON "comments" ("commentable_type", "commentable_id")
 (2.9ms)  CREATE INDEX "index_comments_on_user_id" ON "comments" ("user_id")
 (0.7ms)  DROP TABLE IF EXISTS "likes" CASCADE
 (4.0ms)  CREATE TABLE "likes" ("id" bigserial primary key, "user_id" bigint NOT NULL, "product_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.8ms)  CREATE INDEX "index_likes_on_product_id" ON "likes" ("product_id")
 (2.8ms)  CREATE UNIQUE INDEX "index_likes_on_user_id_and_product_id" ON "likes" ("user_id", "product_id")
 (2.9ms)  CREATE INDEX "index_likes_on_user_id" ON "likes" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "logs" CASCADE
 (6.2ms)  CREATE TABLE "logs" ("id" bigserial primary key, "loggable_type" character varying, "loggable_id" bigint, "attr" character varying, "old_val" character varying, "new_val" character varying, "user_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.8ms)  CREATE INDEX "index_logs_on_loggable" ON "logs" ("loggable_type", "loggable_id")
 (2.4ms)  CREATE INDEX "index_logs_on_user_id" ON "logs" ("user_id")
 (0.3ms)  DROP TABLE IF EXISTS "order_lines" CASCADE
 (4.6ms)  CREATE TABLE "order_lines" ("id" bigserial primary key, "order_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" integer, "total" decimal(5,2), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (3.0ms)  CREATE INDEX "index_order_lines_on_order_id" ON "order_lines" ("order_id")
 (3.8ms)  CREATE INDEX "index_order_lines_on_product_id" ON "order_lines" ("product_id")
 (0.3ms)  DROP TABLE IF EXISTS "orders" CASCADE
 (3.3ms)  CREATE TABLE "orders" ("id" bigserial primary key, "date" date, "user_id" bigint, "total" decimal(6,2), "status" integer DEFAULT 0, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.8ms)  CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "products" CASCADE
 (6.0ms)  CREATE TABLE "products" ("id" bigserial primary key, "name" character varying, "description" character varying, "price" decimal(5,2), "stock" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "likes_count" integer DEFAULT 0)
 (0.3ms)  DROP TABLE IF EXISTS "products_tags" CASCADE
 (1.4ms)  CREATE TABLE "products_tags" ("product_id" bigint NOT NULL, "tag_id" bigint NOT NULL)
 (2.9ms)  CREATE INDEX "index_products_tags_on_product_id" ON "products_tags" ("product_id")
 (2.8ms)  CREATE INDEX "index_products_tags_on_tag_id" ON "products_tags" ("tag_id")
 (0.2ms)  DROP TABLE IF EXISTS "tags" CASCADE
 (5.4ms)  CREATE TABLE "tags" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (0.3ms)  DROP TABLE IF EXISTS "users" CASCADE
 (5.2ms)  CREATE TABLE "users" ("id" bigserial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp(6), "remember_created_at" timestamp(6), "first_name" character varying, "last_name" character varying, "address" character varying, "phone" character varying, "role" integer DEFAULT 0, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.7ms)  CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
 (2.3ms)  CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
 (2.3ms)  ALTER TABLE "comments" ADD CONSTRAINT "fk_rails_03de2dc08c"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (1.9ms)  ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_f7ed05ee50"

FOREIGN KEY (“product_id”)

REFERENCES "products" ("id")



 (1.5ms)  ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_1e09b5dabf"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (1.6ms)  ALTER TABLE "logs" ADD CONSTRAINT "fk_rails_8fc980bf44"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (1.6ms)  ALTER TABLE "order_lines" ADD CONSTRAINT "fk_rails_e6c763ee60"

FOREIGN KEY (“order_id”)

REFERENCES "orders" ("id")



 (1.6ms)  ALTER TABLE "order_lines" ADD CONSTRAINT "fk_rails_83e960fa54"

FOREIGN KEY (“product_id”)

REFERENCES "products" ("id")



 (1.5ms)  ALTER TABLE "orders" ADD CONSTRAINT "fk_rails_f868b47f6a"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (4.4ms)  CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
ActiveRecord::SchemaMigration Pluck (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.8ms)  INSERT INTO "schema_migrations" (version) VALUES (20220717072459)
 (1.0ms)  INSERT INTO "schema_migrations" (version) VALUES

(20220702233559), (20220702235959), (20220703000346), (20220703000538), (20220703002134), (20220703002541), (20220704010436), (20220704194659), (20220710000751), (20220710000931), (20220710003850), (20220710005152), (20220710005930), (20220710025851);



 (5.4ms)  CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
ActiveRecord::InternalMetadata Load (0.3ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
ActiveRecord::InternalMetadata Create (0.4ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"  [["key", "environment"], ["value", "development"], ["created_at", "2022-07-17 21:07:00.475063"], ["updated_at", "2022-07-17 21:07:00.475063"]]
TRANSACTION (0.7ms)  COMMIT
ActiveRecord::InternalMetadata Load (0.2ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
ActiveRecord::InternalMetadata Load (0.2ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "schema_sha1"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
ActiveRecord::InternalMetadata Create (0.2ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"  [["key", "schema_sha1"], ["value", "a79896619f224c75aaa3902e58c816f0f0e74f8b"], ["created_at", "2022-07-17 21:07:00.487165"], ["updated_at", "2022-07-17 21:07:00.487165"]]
TRANSACTION (11.6ms)  COMMIT
SQL (0.3ms)  CREATE EXTENSION IF NOT EXISTS "plpgsql"
 (0.4ms)  DROP TABLE IF EXISTS "comments" CASCADE
 (7.7ms)  CREATE TABLE "comments" ("id" bigserial primary key, "body" text, "rate" integer DEFAULT 0, "user_id" bigint NOT NULL, "commentable_type" character varying NOT NULL, "commentable_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "approved" boolean DEFAULT FALSE)
 (3.1ms)  CREATE INDEX "index_comments_on_commentable" ON "comments" ("commentable_type", "commentable_id")
 (2.5ms)  CREATE INDEX "index_comments_on_user_id" ON "comments" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "likes" CASCADE
 (3.2ms)  CREATE TABLE "likes" ("id" bigserial primary key, "user_id" bigint NOT NULL, "product_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.6ms)  CREATE INDEX "index_likes_on_product_id" ON "likes" ("product_id")
 (2.3ms)  CREATE UNIQUE INDEX "index_likes_on_user_id_and_product_id" ON "likes" ("user_id", "product_id")
 (2.8ms)  CREATE INDEX "index_likes_on_user_id" ON "likes" ("user_id")
 (0.3ms)  DROP TABLE IF EXISTS "logs" CASCADE
 (6.5ms)  CREATE TABLE "logs" ("id" bigserial primary key, "loggable_type" character varying, "loggable_id" bigint, "attr" character varying, "old_val" character varying, "new_val" character varying, "user_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (3.0ms)  CREATE INDEX "index_logs_on_loggable" ON "logs" ("loggable_type", "loggable_id")
 (2.5ms)  CREATE INDEX "index_logs_on_user_id" ON "logs" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "order_lines" CASCADE
 (3.7ms)  CREATE TABLE "order_lines" ("id" bigserial primary key, "order_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" integer, "total" decimal(5,2), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.7ms)  CREATE INDEX "index_order_lines_on_order_id" ON "order_lines" ("order_id")
 (2.3ms)  CREATE INDEX "index_order_lines_on_product_id" ON "order_lines" ("product_id")
 (0.3ms)  DROP TABLE IF EXISTS "orders" CASCADE
 (20.0ms)  CREATE TABLE "orders" ("id" bigserial primary key, "date" date, "user_id" bigint, "total" decimal(6,2), "status" integer DEFAULT 0, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (4.1ms)  CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
 (0.2ms)  DROP TABLE IF EXISTS "products" CASCADE
 (6.6ms)  CREATE TABLE "products" ("id" bigserial primary key, "name" character varying, "description" character varying, "price" decimal(5,2), "stock" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "likes_count" integer DEFAULT 0)
 (0.2ms)  DROP TABLE IF EXISTS "products_tags" CASCADE
 (1.8ms)  CREATE TABLE "products_tags" ("product_id" bigint NOT NULL, "tag_id" bigint NOT NULL)
 (3.3ms)  CREATE INDEX "index_products_tags_on_product_id" ON "products_tags" ("product_id")
 (2.9ms)  CREATE INDEX "index_products_tags_on_tag_id" ON "products_tags" ("tag_id")
 (0.3ms)  DROP TABLE IF EXISTS "tags" CASCADE
 (5.4ms)  CREATE TABLE "tags" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (0.2ms)  DROP TABLE IF EXISTS "users" CASCADE
 (17.9ms)  CREATE TABLE "users" ("id" bigserial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp(6), "remember_created_at" timestamp(6), "first_name" character varying, "last_name" character varying, "address" character varying, "phone" character varying, "role" integer DEFAULT 0, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
 (2.4ms)  CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
 (2.0ms)  CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
 (3.1ms)  ALTER TABLE "comments" ADD CONSTRAINT "fk_rails_03de2dc08c"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (1.9ms)  ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_f7ed05ee50"

FOREIGN KEY (“product_id”)

REFERENCES "products" ("id")



 (1.5ms)  ALTER TABLE "likes" ADD CONSTRAINT "fk_rails_1e09b5dabf"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (1.7ms)  ALTER TABLE "logs" ADD CONSTRAINT "fk_rails_8fc980bf44"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (2.4ms)  ALTER TABLE "order_lines" ADD CONSTRAINT "fk_rails_e6c763ee60"

FOREIGN KEY (“order_id”)

REFERENCES "orders" ("id")



 (1.6ms)  ALTER TABLE "order_lines" ADD CONSTRAINT "fk_rails_83e960fa54"

FOREIGN KEY (“product_id”)

REFERENCES "products" ("id")



 (1.4ms)  ALTER TABLE "orders" ADD CONSTRAINT "fk_rails_f868b47f6a"

FOREIGN KEY (“user_id”)

REFERENCES "users" ("id")



 (22.0ms)  CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
ActiveRecord::SchemaMigration Pluck (0.5ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (1.3ms)  INSERT INTO "schema_migrations" (version) VALUES (20220717072459)
 (1.1ms)  INSERT INTO "schema_migrations" (version) VALUES

(20220702233559), (20220702235959), (20220703000346), (20220703000538), (20220703002134), (20220703002541), (20220704010436), (20220704194659), (20220710000751), (20220710000931), (20220710003850), (20220710005152), (20220710005930), (20220710025851);



 (4.8ms)  CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
ActiveRecord::InternalMetadata Load (0.3ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
ActiveRecord::InternalMetadata Create (0.4ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"  [["key", "environment"], ["value", "development"], ["created_at", "2022-07-17 21:07:00.773719"], ["updated_at", "2022-07-17 21:07:00.773719"]]
TRANSACTION (1.2ms)  COMMIT
ActiveRecord::InternalMetadata Load (0.3ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
ActiveRecord::InternalMetadata Update (0.4ms)  UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3  [["value", "test"], ["updated_at", "2022-07-17 21:07:00.783628"], ["key", "environment"]]
TRANSACTION (1.1ms)  COMMIT
ActiveRecord::InternalMetadata Load (0.4ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "schema_sha1"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
ActiveRecord::InternalMetadata Create (0.3ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"  [["key", "schema_sha1"], ["value", "a79896619f224c75aaa3902e58c816f0f0e74f8b"], ["created_at", "2022-07-17 21:07:00.792414"], ["updated_at", "2022-07-17 21:07:00.792414"]]
TRANSACTION (38.2ms)  COMMIT
ActiveRecord::SchemaMigration Pluck (0.8ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
TRANSACTION (0.2ms)  BEGIN
User Exists? (0.6ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]
User Create (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "alvaro@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Alvaro"], ["last_name", "Torres"], ["address", "496 Collen Ville"], ["phone", "723473884"], ["role", 1], ["created_at", "2022-07-17 21:07:01.401884"], ["updated_at", "2022-07-17 21:07:01.401884"]]
TRANSACTION (38.1ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Exists? (0.3ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "support@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "support@mail.com"], ["LIMIT", 1]]
User Create (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "support@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Tresa"], ["last_name", "Durgan"], ["address", "42618 Stroman Forges"], ["phone", "172777912"], ["role", 2], ["created_at", "2022-07-17 21:07:01.659553"], ["updated_at", "2022-07-17 21:07:01.659553"]]
TRANSACTION (1.1ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Exists? (0.4ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]
User Create (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test1@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Barney"], ["last_name", "Marks"], ["address", "172 Borer Locks"], ["phone", "940818207"], ["role", 0], ["created_at", "2022-07-17 21:07:01.884125"], ["updated_at", "2022-07-17 21:07:01.884125"]]
TRANSACTION (1.3ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
User Exists? (0.5ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test2@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test2@mail.com"], ["LIMIT", 1]]
User Create (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test2@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Hector"], ["last_name", "Hessel"], ["address", "895 Merrie Trace"], ["phone", "174476542"], ["role", 0], ["created_at", "2022-07-17 21:07:02.111710"], ["updated_at", "2022-07-17 21:07:02.111710"]]
TRANSACTION (11.9ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Exists? (0.2ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test3@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test3@mail.com"], ["LIMIT", 1]]
User Create (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test3@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Lucrecia"], ["last_name", "Torp"], ["address", "89773 Kuphal Rest"], ["phone", "606411739"], ["role", 0], ["created_at", "2022-07-17 21:07:02.362458"], ["updated_at", "2022-07-17 21:07:02.362458"]]
TRANSACTION (1.6ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Exists? (0.3ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test4@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test4@mail.com"], ["LIMIT", 1]]
User Create (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test4@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Blair"], ["last_name", "Ebert"], ["address", "469 Mina Keys"], ["phone", "143740151"], ["role", 0], ["created_at", "2022-07-17 21:07:02.607404"], ["updated_at", "2022-07-17 21:07:02.607404"]]
TRANSACTION (1.1ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Exists? (0.7ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test5@mail.com"], ["LIMIT", 1]]
CACHE User Exists? (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "test5@mail.com"], ["LIMIT", 1]]
User Create (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "first_name", "last_name", "address", "phone", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"  [["email", "test5@mail.com"], ["encrypted_password", "[FILTERED]"], ["reset_password_token", "[FILTERED]"], ["reset_password_sent_at", "[FILTERED]"], ["remember_created_at", nil], ["first_name", "Antony"], ["last_name", "Bayer"], ["address", "8686 Jacobi Mall"], ["phone", "419399295"], ["role", 0], ["created_at", "2022-07-17 21:07:02.879035"], ["updated_at", "2022-07-17 21:07:02.879035"]]
TRANSACTION (4.0ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
Tag Create (3.2ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "chips"], ["created_at", "2022-07-17 21:07:02.902581"], ["updated_at", "2022-07-17 21:07:02.902581"]]
TRANSACTION (15.4ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.3ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "soda"], ["created_at", "2022-07-17 21:07:02.927754"], ["updated_at", "2022-07-17 21:07:02.927754"]]
TRANSACTION (10.9ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
Tag Create (0.3ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "beer"], ["created_at", "2022-07-17 21:07:02.944419"], ["updated_at", "2022-07-17 21:07:02.944419"]]
TRANSACTION (9.3ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.3ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "cookies"], ["created_at", "2022-07-17 21:07:02.961046"], ["updated_at", "2022-07-17 21:07:02.961046"]]
TRANSACTION (11.1ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Tag Create (0.9ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "chocolates"], ["created_at", "2022-07-17 21:07:02.977968"], ["updated_at", "2022-07-17 21:07:02.977968"]]
TRANSACTION (9.9ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.3ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "snack"], ["created_at", "2022-07-17 21:07:02.994735"], ["updated_at", "2022-07-17 21:07:02.994735"]]
TRANSACTION (9.5ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Tag Create (0.2ms)  INSERT INTO "tags" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "beverage"], ["created_at", "2022-07-17 21:07:03.011466"], ["updated_at", "2022-07-17 21:07:03.011466"]]
TRANSACTION (10.3ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "doritos"], ["LIMIT", 1]]
Product Create (1.0ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "doritos"], ["description", "Flavored tortilla chips"], ["price", "7.0"], ["stock", 50], ["created_at", "2022-07-17 21:07:03.054834"], ["updated_at", "2022-07-17 21:07:03.054834"], ["likes_count", 0]]
TRANSACTION (0.9ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.6ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 1], ["tag_id", 1]]
TRANSACTION (16.3ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.4ms)  BEGIN
Product::HABTM_Tags Create (0.8ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 1], ["tag_id", 6]]
TRANSACTION (7.2ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "pringles"], ["LIMIT", 1]]
Product Create (2.1ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "pringles"], ["description", "Stackable potato-based crisps"], ["price", "22.0"], ["stock", 25], ["created_at", "2022-07-17 21:07:03.132831"], ["updated_at", "2022-07-17 21:07:03.132831"], ["likes_count", 0]]
TRANSACTION (5.8ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.9ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 2], ["tag_id", 1]]
TRANSACTION (9.2ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.5ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 2], ["tag_id", 6]]
TRANSACTION (2.3ms)  COMMIT
TRANSACTION (3.0ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "lay's"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "lay's"], ["description", "Potato chips"], ["price", "4.0"], ["stock", 70], ["created_at", "2022-07-17 21:07:03.183983"], ["updated_at", "2022-07-17 21:07:03.183983"], ["likes_count", 0]]
TRANSACTION (30.9ms)  COMMIT
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 3], ["tag_id", 1]]
TRANSACTION (6.3ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 3], ["tag_id", 6]]
TRANSACTION (6.8ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "takis"], ["LIMIT", 1]]
Product Create (1.0ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "takis"], ["description", "Rolled, corn tortilla chip"], ["price", "12.0"], ["stock", 30], ["created_at", "2022-07-17 21:07:03.259090"], ["updated_at", "2022-07-17 21:07:03.259090"], ["likes_count", 0]]
TRANSACTION (5.2ms)  COMMIT
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.6ms)  BEGIN
Product::HABTM_Tags Create (0.7ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 4], ["tag_id", 1]]
TRANSACTION (5.0ms)  COMMIT
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 4], ["tag_id", 6]]
TRANSACTION (7.7ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "ruffles"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "ruffles"], ["description", "Ruffled (crinkle-cut) potato chips"], ["price", "18.0"], ["stock", 60], ["created_at", "2022-07-17 21:07:03.332140"], ["updated_at", "2022-07-17 21:07:03.332140"], ["likes_count", 0]]
TRANSACTION (3.2ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chips"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 5], ["tag_id", 1]]
TRANSACTION (0.8ms)  COMMIT
Tag Load (0.1ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 5], ["tag_id", 6]]
TRANSACTION (36.8ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "coca cola"], ["LIMIT", 1]]
Product Create (0.6ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "coca cola"], ["description", "Carbonated soft drink"], ["price", "8.0"], ["stock", 50], ["created_at", "2022-07-17 21:07:03.400678"], ["updated_at", "2022-07-17 21:07:03.400678"], ["likes_count", 0]]
TRANSACTION (5.5ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 6], ["tag_id", 2]]
TRANSACTION (7.9ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 6], ["tag_id", 7]]
TRANSACTION (12.2ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "pepsi"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "pepsi"], ["description", "Carbonated soft drink"], ["price", "7.5"], ["stock", 25], ["created_at", "2022-07-17 21:07:03.453221"], ["updated_at", "2022-07-17 21:07:03.453221"], ["likes_count", 0]]
TRANSACTION (37.0ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.9ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 7], ["tag_id", 2]]
TRANSACTION (6.4ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.4ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 7], ["tag_id", 7]]
TRANSACTION (8.2ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "dr pepper"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "dr pepper"], ["description", "Carbonated soft drink"], ["price", "6.5"], ["stock", 70], ["created_at", "2022-07-17 21:07:03.532510"], ["updated_at", "2022-07-17 21:07:03.532510"], ["likes_count", 0]]
TRANSACTION (7.4ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.3ms)  BEGIN
Product::HABTM_Tags Create (0.4ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 8], ["tag_id", 2]]
TRANSACTION (6.7ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 8], ["tag_id", 7]]
TRANSACTION (8.2ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "mountain dew"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "mountain dew"], ["description", "Carbonated soft drink"], ["price", "9.5"], ["stock", 30], ["created_at", "2022-07-17 21:07:03.583674"], ["updated_at", "2022-07-17 21:07:03.583674"], ["likes_count", 0]]
TRANSACTION (6.3ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 9], ["tag_id", 2]]
TRANSACTION (27.5ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 9], ["tag_id", 7]]
TRANSACTION (30.0ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "sprite"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "sprite"], ["description", "Carbonated soft drink"], ["price", "5.5"], ["stock", 60], ["created_at", "2022-07-17 21:07:03.673361"], ["updated_at", "2022-07-17 21:07:03.673361"], ["likes_count", 0]]
TRANSACTION (8.1ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "soda"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 10], ["tag_id", 2]]
TRANSACTION (9.7ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.4ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 10], ["tag_id", 7]]
TRANSACTION (5.6ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "stella artois"], ["LIMIT", 1]]
Product Create (0.6ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "stella artois"], ["description", "Pilsner beer"], ["price", "25.0"], ["stock", 50], ["created_at", "2022-07-17 21:07:03.724827"], ["updated_at", "2022-07-17 21:07:03.724827"], ["likes_count", 0]]
TRANSACTION (6.8ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.4ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 11], ["tag_id", 3]]
TRANSACTION (10.2ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 11], ["tag_id", 7]]
TRANSACTION (8.7ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "corona"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "corona"], ["description", "Beer"], ["price", "12.5"], ["stock", 25], ["created_at", "2022-07-17 21:07:03.777824"], ["updated_at", "2022-07-17 21:07:03.777824"], ["likes_count", 0]]
TRANSACTION (28.7ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 12], ["tag_id", 3]]
TRANSACTION (7.9ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 12], ["tag_id", 7]]
TRANSACTION (8.7ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "heineken"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "heineken"], ["description", "Pale lager beer"], ["price", "15.5"], ["stock", 70], ["created_at", "2022-07-17 21:07:03.849436"], ["updated_at", "2022-07-17 21:07:03.849436"], ["likes_count", 0]]
TRANSACTION (7.4ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 13], ["tag_id", 3]]
TRANSACTION (7.6ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 13], ["tag_id", 7]]
TRANSACTION (8.8ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "budweiser"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "budweiser"], ["description", " American-style pale lager"], ["price", "13.5"], ["stock", 30], ["created_at", "2022-07-17 21:07:03.899583"], ["updated_at", "2022-07-17 21:07:03.899583"], ["likes_count", 0]]
TRANSACTION (7.1ms)  COMMIT
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 14], ["tag_id", 3]]
TRANSACTION (6.7ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.4ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 14], ["tag_id", 7]]
TRANSACTION (3.8ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "guinness"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "guinness"], ["description", " Irish dry stout"], ["price", "31.5"], ["stock", 60], ["created_at", "2022-07-17 21:07:03.962701"], ["updated_at", "2022-07-17 21:07:03.962701"], ["likes_count", 0]]
TRANSACTION (26.7ms)  COMMIT
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beer"], ["LIMIT", 1]]
TRANSACTION (0.3ms)  BEGIN
Product::HABTM_Tags Create (0.4ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 15], ["tag_id", 3]]
TRANSACTION (0.9ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "beverage"], ["LIMIT", 1]]
TRANSACTION (0.3ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 15], ["tag_id", 7]]
TRANSACTION (21.6ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "oreo"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "oreo"], ["description", "Sandwich cookie"], ["price", "3.0"], ["stock", 50], ["created_at", "2022-07-17 21:07:04.107172"], ["updated_at", "2022-07-17 21:07:04.107172"], ["likes_count", 0]]
TRANSACTION (17.6ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "cookies"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.4ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 16], ["tag_id", 4]]
TRANSACTION (1.0ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 16], ["tag_id", 6]]
TRANSACTION (20.0ms)  COMMIT
TRANSACTION (0.8ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "chips ahoy!"], ["LIMIT", 1]]
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "chips ahoy!"], ["description", " Chocolate chip cookie"], ["price", "2.5"], ["stock", 25], ["created_at", "2022-07-17 21:07:04.227472"], ["updated_at", "2022-07-17 21:07:04.227472"], ["likes_count", 0]]
TRANSACTION (7.7ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "cookies"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 17], ["tag_id", 4]]
TRANSACTION (0.8ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 17], ["tag_id", 6]]
TRANSACTION (35.6ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "m&m's"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "m&m's"], ["description", "Multi-colored button-shaped chocolates"], ["price", "5.0"], ["stock", 70], ["created_at", "2022-07-17 21:07:04.306720"], ["updated_at", "2022-07-17 21:07:04.306720"], ["likes_count", 0]]
TRANSACTION (20.0ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "chocolates"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 18], ["tag_id", 5]]
TRANSACTION (28.5ms)  COMMIT
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 18], ["tag_id", 6]]
TRANSACTION (7.7ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "ritz crackers"], ["LIMIT", 1]]
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "ritz crackers"], ["description", " Snack cracker"], ["price", "2.5"], ["stock", 30], ["created_at", "2022-07-17 21:07:04.391271"], ["updated_at", "2022-07-17 21:07:04.391271"], ["likes_count", 0]]
TRANSACTION (6.8ms)  COMMIT
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "cookies"], ["LIMIT", 1]]
TRANSACTION (0.3ms)  BEGIN
Product::HABTM_Tags Create (0.3ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 19], ["tag_id", 4]]
TRANSACTION (7.2ms)  COMMIT
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 19], ["tag_id", 6]]
TRANSACTION (7.9ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "oreo thins"], ["LIMIT", 1]]
Product Create (0.2ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "oreo thins"], ["description", "Thinner sandwich cookie"], ["price", "3.5"], ["stock", 60], ["created_at", "2022-07-17 21:07:04.440396"], ["updated_at", "2022-07-17 21:07:04.440396"], ["likes_count", 0]]
TRANSACTION (8.0ms)  COMMIT
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "cookies"], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
Product::HABTM_Tags Create (0.2ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 20], ["tag_id", 4]]
TRANSACTION (8.7ms)  COMMIT
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" WHERE "tags"."name" = $1 LIMIT $2  [["name", "snack"], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
Product::HABTM_Tags Create (0.4ms)  INSERT INTO "products_tags" ("product_id", "tag_id") VALUES ($1, $2)  [["product_id", 20], ["tag_id", 6]]
TRANSACTION (19.0ms)  COMMIT
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 10], ["LIMIT", 1]]
TRANSACTION (0.1ms)  BEGIN
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 2], ["product_id", 10], ["LIMIT", 1]]
Like Create (1.0ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 2], ["product_id", 10], ["created_at", "2022-07-17 21:07:04.540234"], ["updated_at", "2022-07-17 21:07:04.540234"]]
Product Update All (0.5ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (1.2ms)  COMMIT
TRANSACTION (1.3ms)  BEGIN
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 10], ["created_at", "2022-07-17 21:07:04.563936"], ["updated_at", "2022-07-17 21:07:04.563936"]]
Product Update All (0.2ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (18.6ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 4], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 4], ["product_id", 10], ["created_at", "2022-07-17 21:07:04.598658"], ["updated_at", "2022-07-17 21:07:04.598658"]]
Product Update All (0.2ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (22.1ms)  COMMIT
TRANSACTION (0.1ms)  BEGIN
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 5], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 5], ["product_id", 10], ["created_at", "2022-07-17 21:07:04.636742"], ["updated_at", "2022-07-17 21:07:04.636742"]]
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (20.0ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 6], ["product_id", 10], ["LIMIT", 1]]
Like Create (0.5ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 6], ["product_id", 10], ["created_at", "2022-07-17 21:07:04.673711"], ["updated_at", "2022-07-17 21:07:04.673711"]]
Product Update All (0.5ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 10]]
TRANSACTION (23.2ms)  COMMIT
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 15], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 15], ["LIMIT", 1]]
Like Create (0.5ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 15], ["created_at", "2022-07-17 21:07:04.714992"], ["updated_at", "2022-07-17 21:07:04.714992"]]
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 15]]
TRANSACTION (17.6ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 4], ["product_id", 15], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 4], ["product_id", 15], ["created_at", "2022-07-17 21:07:04.748583"], ["updated_at", "2022-07-17 21:07:04.748583"]]
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 15]]
TRANSACTION (22.4ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 5], ["product_id", 15], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 5], ["product_id", 15], ["created_at", "2022-07-17 21:07:04.785372"], ["updated_at", "2022-07-17 21:07:04.785372"]]
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 15]]
TRANSACTION (2.0ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 6], ["product_id", 15], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 6], ["product_id", 15], ["created_at", "2022-07-17 21:07:04.803246"], ["updated_at", "2022-07-17 21:07:04.803246"]]
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 15]]
TRANSACTION (21.1ms)  COMMIT
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 2], ["product_id", 3], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 2], ["product_id", 3], ["created_at", "2022-07-17 21:07:04.842068"], ["updated_at", "2022-07-17 21:07:04.842068"]]
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 3]]
TRANSACTION (20.3ms)  COMMIT
TRANSACTION (0.2ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 3], ["LIMIT", 1]]
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 3], ["created_at", "2022-07-17 21:07:04.877419"], ["updated_at", "2022-07-17 21:07:04.877419"]]
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 3]]
TRANSACTION (1.6ms)  COMMIT
TRANSACTION (0.3ms)  BEGIN
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 4], ["product_id", 3], ["LIMIT", 1]]
Like Create (0.5ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 4], ["product_id", 3], ["created_at", "2022-07-17 21:07:04.893439"], ["updated_at", "2022-07-17 21:07:04.893439"]]
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 3]]
TRANSACTION (2.8ms)  COMMIT

Started GET “/” for 127.0.0.1 at 2022-07-18 12:06:51 -0500

ActiveRecord::SchemaMigration Pluck (46.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#index as HTML

Order Load (14.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (28.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 251.9ms | Allocations: 14281)
Product Exists? (29.0ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (42.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 2484.3ms | Allocations: 286988)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 2063)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 1819)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1837)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1818)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 2967.3ms | Allocations: 343062)
Rendered layout layouts/application.html.erb (Duration: 3627.9ms | Allocations: 399008)

Completed 200 OK in 4051ms (Views: 3540.8ms | ActiveRecord: 210.0ms | Allocations: 422674)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-18 12:07:13 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"2", "quantity"=>"3"}, "commit"=>"Add to Cart"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
Order Create (71.2ms)  INSERT INTO "orders" ("date", "user_id", "total", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["date", nil], ["user_id", nil], ["total", "66.0"], ["status", 0], ["created_at", "2022-07-18 17:07:13.982361"], ["updated_at", "2022-07-18 17:07:13.982361"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Create (16.3ms)  INSERT INTO "order_lines" ("order_id", "product_id", "quantity", "total", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["order_id", 1], ["product_id", 2], ["quantity", 3], ["total", "66.0"], ["created_at", "2022-07-18 17:07:14.057494"], ["updated_at", "2022-07-18 17:07:14.057494"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (1.7ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 116ms (ActiveRecord: 89.9ms | Allocations: 10334)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 12:07:14 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (1.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (1.0ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 19.5ms | Allocations: 6321)
Rendered layout layouts/application.html.erb (Duration: 38.5ms | Allocations: 14217)

Completed 200 OK in 55ms (Views: 37.4ms | ActiveRecord: 3.0ms | Allocations: 17960)

Started GET “/” for 127.0.0.1 at 2022-07-18 12:07:16 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.1ms | Allocations: 8585)
Product Exists? (3.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.1ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 1903)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1819)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 1837)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1819)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1819)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 1819)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1819)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1819)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1819)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1818)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1818)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 236.5ms | Allocations: 47798)
Rendered layout layouts/application.html.erb (Duration: 252.1ms | Allocations: 55515)

Completed 200 OK in 265ms (Views: 225.3ms | ActiveRecord: 28.8ms | Allocations: 57242)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-18 12:07:17 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"2", "quantity"=>"3"}, "commit"=>"Add to Cart"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 1], ["product_id", 2], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:51:in `new_or_existing_product'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Update (0.4ms)  UPDATE "order_lines" SET "quantity" = $1, "total" = $2, "updated_at" = $3 WHERE "order_lines"."id" = $4  [["quantity", 6], ["total", "132.0"], ["updated_at", "2022-07-18 17:07:17.866125"], ["id", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.4ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "132.0"], ["updated_at", "2022-07-18 17:07:17.873638"], ["id", 1]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (1.5ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 34ms (ActiveRecord: 3.8ms | Allocations: 6921)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 12:07:17 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 17.2ms | Allocations: 4455)
Rendered layout layouts/application.html.erb (Duration: 32.4ms | Allocations: 12165)

Completed 200 OK in 52ms (Views: 33.1ms | ActiveRecord: 1.2ms | Allocations: 14510)

Started GET “/” for 127.0.0.1 at 2022-07-18 12:08:16 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 65.2ms | Allocations: 12640)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 19.7ms | Allocations: 8602)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 2007)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1837)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1818)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 284.5ms | Allocations: 60891)
Rendered layout layouts/application.html.erb (Duration: 323.9ms | Allocations: 83646)

Completed 200 OK in 427ms (Views: 310.5ms | ActiveRecord: 26.3ms | Allocations: 98798)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 12:08:18 -0500 Processing by OrdersController#cart as HTML

Order Load (2.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (3.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (3.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 35.7ms | Allocations: 7158)
Rendered layout layouts/application.html.erb (Duration: 62.8ms | Allocations: 15109)

Completed 200 OK in 86ms (Views: 57.6ms | ActiveRecord: 9.5ms | Allocations: 18020)

Started GET “/” for 127.0.0.1 at 2022-07-18 12:08:20 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (4.0ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 22.4ms | Allocations: 8584)
Product Exists? (0.8ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 1902)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 1819)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 1819)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 24.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 240.4ms | Allocations: 47793)
Rendered layout layouts/application.html.erb (Duration: 258.3ms | Allocations: 55495)

Completed 200 OK in 283ms (Views: 244.5ms | ActiveRecord: 18.0ms | Allocations: 57219)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-18 12:08:21 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"2", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (1.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 1], ["product_id", 2], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:51:in `new_or_existing_product'
TRANSACTION (7.5ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Update (2.1ms)  UPDATE "order_lines" SET "quantity" = $1, "total" = $2, "updated_at" = $3 WHERE "order_lines"."id" = $4  [["quantity", 8], ["total", "176.0"], ["updated_at", "2022-07-18 17:08:22.020944"], ["id", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.3ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "176.0"], ["updated_at", "2022-07-18 17:08:22.029867"], ["id", 1]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (1.5ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 63ms (ActiveRecord: 14.1ms | Allocations: 7698)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 12:08:22 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.6ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.4ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 23.6ms | Allocations: 4573)
Rendered layout layouts/application.html.erb (Duration: 38.3ms | Allocations: 12409)

Completed 200 OK in 52ms (Views: 40.1ms | ActiveRecord: 1.5ms | Allocations: 14771)

Started GET “/” for 127.0.0.1 at 2022-07-18 12:08:23 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 18.8ms | Allocations: 8583)
Product Exists? (1.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.0ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1902)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1819)
Tag Load (6.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 38.8ms | Allocations: 1819)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1819)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 21.9ms | Allocations: 1819)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.2ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1837)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 1819)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 1819)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 1818)
Tag Load (3.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1818)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 281.9ms | Allocations: 47787)
Rendered layout layouts/application.html.erb (Duration: 304.0ms | Allocations: 55503)

Completed 200 OK in 322ms (Views: 286.7ms | ActiveRecord: 26.8ms | Allocations: 57168)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-18 12:08:25 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"2", "quantity"=>"5"}, "commit"=>"Add to Cart"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (5.1ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 1], ["product_id", 2], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:51:in `new_or_existing_product'
TRANSACTION (0.3ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (2.8ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Update (3.9ms)  UPDATE "order_lines" SET "quantity" = $1, "total" = $2, "updated_at" = $3 WHERE "order_lines"."id" = $4  [["quantity", 13], ["total", "286.0"], ["updated_at", "2022-07-18 17:08:25.819024"], ["id", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Load (0.8ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.4ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "286.0"], ["updated_at", "2022-07-18 17:08:25.829691"], ["id", 1]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (3.0ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 56ms (ActiveRecord: 16.6ms | Allocations: 6629)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 12:08:25 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.5ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 16.7ms | Allocations: 4451)
Rendered layout layouts/application.html.erb (Duration: 30.6ms | Allocations: 12172)

Completed 200 OK in 42ms (Views: 30.9ms | ActiveRecord: 1.4ms | Allocations: 14527)

Started GET “/” for 127.0.0.1 at 2022-07-18 12:08:27 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (7.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 30.3ms | Allocations: 8563)
Product Exists? (1.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (3.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 1895)
Tag Load (3.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1819)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 1824)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (3.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1819)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (4.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 253.1ms | Allocations: 47761)
Rendered layout layouts/application.html.erb (Duration: 267.3ms | Allocations: 55480)

Completed 200 OK in 296ms (Views: 242.0ms | ActiveRecord: 33.3ms | Allocations: 57107)

Started GET “/” for 127.0.0.1 at 2022-07-18 12:08:37 -0500

ActiveRecord::SchemaMigration Pluck (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 222.7ms | Allocations: 14255)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (2.9ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 694.7ms | Allocations: 286311)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 35.6ms | Allocations: 2063)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1819)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1819)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 55.5ms | Allocations: 1837)
Tag Load (10.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 31.3ms | Allocations: 1819)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 1819)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.1ms | Allocations: 1819)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 20.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.8ms | Allocations: 1819)
Tag Load (9.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.0ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 22.9ms | Allocations: 1818)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.8ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 1376.8ms | Allocations: 342355)
Rendered layout layouts/application.html.erb (Duration: 1581.5ms | Allocations: 397684)

Completed 200 OK in 1723ms (Views: 1529.1ms | ActiveRecord: 73.6ms | Allocations: 422651)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-18 12:08:41 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"1", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 1], ["product_id", 1], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:51:in `new_or_existing_product'
TRANSACTION (0.6ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Create (1.0ms)  INSERT INTO "order_lines" ("order_id", "product_id", "quantity", "total", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["order_id", 1], ["product_id", 1], ["quantity", 2], ["total", "14.0"], ["created_at", "2022-07-18 17:08:41.555420"], ["updated_at", "2022-07-18 17:08:41.555420"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (1.2ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (0.2ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.6ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.6ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "300.0"], ["updated_at", "2022-07-18 17:08:41.571795"], ["id", 1]]
↳ app/controllers/order_lines_controller.rb:12:in `create'
TRANSACTION (7.1ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:12:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 51ms (ActiveRecord: 12.5ms | Allocations: 11971)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 12:08:41 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.5ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 31.9ms | Allocations: 7263)
Rendered layout layouts/application.html.erb (Duration: 46.7ms | Allocations: 15159)

Completed 200 OK in 62ms (Views: 47.9ms | ActiveRecord: 2.2ms | Allocations: 18253)

Started DELETE “/order_lines/1” for 127.0.0.1 at 2022-07-18 12:08:42 -0500 Processing by OrderLinesController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"1"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:60:in `set_order_line'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:35:in `destroy'
OrderLine Destroy (3.2ms)  DELETE FROM "order_lines" WHERE "order_lines"."id" = $1  [["id", 1]]
↳ app/controllers/order_lines_controller.rb:35:in `destroy'
Order Load (0.9ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/models/order_line.rb:28:in `update_total'
OrderLine Load (3.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.4ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "14.0"], ["updated_at", "2022-07-18 17:08:42.836574"], ["id", 1]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (1.1ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:35:in `destroy'

Redirected to localhost:3000/cart Completed 302 Found in 40ms (ActiveRecord: 9.6ms | Allocations: 7140)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 12:08:42 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.6ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 25.2ms | Allocations: 4455)
Rendered layout layouts/application.html.erb (Duration: 45.2ms | Allocations: 12123)

Completed 200 OK in 59ms (Views: 45.5ms | ActiveRecord: 2.0ms | Allocations: 14471)

Started GET “/” for 127.0.0.1 at 2022-07-18 12:08:44 -0500 Processing by ProductsController#index as HTML

Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 65.1ms | Allocations: 8585)
Product Exists? (0.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1903)
Tag Load (3.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1819)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1819)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (7.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1819)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1837)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1819)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 251.8ms | Allocations: 47795)
Rendered layout layouts/application.html.erb (Duration: 268.2ms | Allocations: 55512)

Completed 200 OK in 288ms (Views: 245.2ms | ActiveRecord: 27.4ms | Allocations: 57170)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-18 12:08:46 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"1", "quantity"=>"3"}, "commit"=>"Add to Cart"}
Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (1.0ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 1], ["product_id", 1], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:51:in `new_or_existing_product'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Update (0.8ms)  UPDATE "order_lines" SET "quantity" = $1, "total" = $2, "updated_at" = $3 WHERE "order_lines"."id" = $4  [["quantity", 5], ["total", "35.0"], ["updated_at", "2022-07-18 17:08:46.495897"], ["id", 2]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Load (0.8ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.9ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "35.0"], ["updated_at", "2022-07-18 17:08:46.505970"], ["id", 1]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (2.7ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 41ms (ActiveRecord: 7.3ms | Allocations: 6748)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 12:08:46 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.9ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.7ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 20.7ms | Allocations: 4452)
Rendered layout layouts/application.html.erb (Duration: 36.7ms | Allocations: 12171)

Completed 200 OK in 51ms (Views: 35.5ms | ActiveRecord: 2.7ms | Allocations: 14500)

Started GET “/” for 127.0.0.1 at 2022-07-18 12:08:49 -0500 Processing by ProductsController#index as HTML

Order Load (0.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.0ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.2ms | Allocations: 8562)
Product Exists? (1.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (2.1ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1895)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 1819)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.9ms | Allocations: 1837)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1845)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1818)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 227.8ms | Allocations: 47781)
Rendered layout layouts/application.html.erb (Duration: 241.0ms | Allocations: 55441)

Completed 200 OK in 264ms (Views: 227.9ms | ActiveRecord: 18.4ms | Allocations: 57085)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-18 12:10:50 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 13.5ms | Allocations: 728)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 62.8ms | Allocations: 3520)
Rendered layout layouts/application.html.erb (Duration: 112.2ms | Allocations: 11439)

Completed 200 OK in 210ms (Views: 121.8ms | ActiveRecord: 3.2ms | Allocations: 19257)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-18 12:10:56 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"test1@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (43.5ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/

Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2 LIMIT $3  [["user_id", 3], ["status", 0], ["LIMIT", 1]]
↳ app/controllers/sessions_controller.rb:12:in `after_login'
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
TRANSACTION (0.1ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.5ms)  UPDATE "orders" SET "user_id" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["user_id", 3], ["updated_at", "2022-07-18 17:10:57.168056"], ["id", 1]]
↳ app/controllers/sessions_controller.rb:15:in `after_login'
TRANSACTION (3.9ms)  COMMIT
↳ app/controllers/sessions_controller.rb:15:in `after_login'

Completed 302 Found in 469ms (ActiveRecord: 49.2ms | Allocations: 9666)

Started GET “/” for 127.0.0.1 at 2022-07-18 12:10:57 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (1.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.2ms | Allocations: 8625)
Product Exists? (2.0ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (21.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 37.2ms | Allocations: 3721)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2638)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2635)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (5.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.1ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (17.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 40.4ms | Allocations: 5133)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (2.1ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 27.9ms | Allocations: 3429)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 24.9ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 345.8ms | Allocations: 69321)
Rendered layout layouts/application.html.erb (Duration: 373.9ms | Allocations: 77194)

Completed 200 OK in 385ms (Views: 302.2ms | ActiveRecord: 73.7ms | Allocations: 78947)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 12:11:09 -0500 Processing by OrdersController#cart as HTML

Order Load (3.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (4.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (1.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.5ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 31.7ms | Allocations: 5180)
Rendered layout layouts/application.html.erb (Duration: 82.8ms | Allocations: 12897)

Completed 200 OK in 115ms (Views: 76.4ms | ActiveRecord: 10.7ms | Allocations: 15227)

Started GET “/” for 127.0.0.1 at 2022-07-18 12:11:11 -0500 Processing by ProductsController#index as HTML

Order Load (1.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.9ms | Allocations: 8562)
Product Exists? (1.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (10.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.2ms | Allocations: 3470)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 2635)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 21.6ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.3ms | Allocations: 2707)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 26.8ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 3424)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 3429)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 308.6ms | Allocations: 67234)
Rendered layout layouts/application.html.erb (Duration: 331.5ms | Allocations: 74987)

Completed 200 OK in 347ms (Views: 285.8ms | ActiveRecord: 47.5ms | Allocations: 76638)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-18 12:11:13 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"5", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (1.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (1.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 1], ["product_id", 5], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:51:in `new_or_existing_product'
User Load (2.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:53:in `new_or_existing_product'
TRANSACTION (0.8ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Create (5.4ms)  INSERT INTO "order_lines" ("order_id", "product_id", "quantity", "total", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["order_id", 1], ["product_id", 5], ["quantity", 2], ["total", "36.0"], ["created_at", "2022-07-18 17:11:13.232452"], ["updated_at", "2022-07-18 17:11:13.232452"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (1.7ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (0.2ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.6ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.8ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "71.0"], ["updated_at", "2022-07-18 17:11:13.267873"], ["id", 1]]
↳ app/controllers/order_lines_controller.rb:12:in `create'
TRANSACTION (1.2ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:12:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 101ms (ActiveRecord: 15.5ms | Allocations: 8419)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 12:11:13 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.9ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.4ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 24.8ms | Allocations: 6906)
Rendered layout layouts/application.html.erb (Duration: 39.5ms | Allocations: 14610)

Completed 200 OK in 47ms (Views: 38.1ms | ActiveRecord: 2.6ms | Allocations: 16963)

Started PATCH “/order_lines/3” for 127.0.0.1 at 2022-07-18 12:11:15 -0500 Processing by OrderLinesController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"5", "quantity"=>"3"}, "commit"=>"Update", "id"=>"3"}
Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.9ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:60:in `set_order_line'
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:60:in `set_order_line'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:29:in `update'
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
OrderLine Update (0.8ms)  UPDATE "order_lines" SET "quantity" = $1, "total" = $2, "updated_at" = $3 WHERE "order_lines"."id" = $4  [["quantity", 3], ["total", "54.0"], ["updated_at", "2022-07-18 17:11:15.701115"], ["id", 3]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.5ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "89.0"], ["updated_at", "2022-07-18 17:11:15.711345"], ["id", 1]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (1.2ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:29:in `update'

Redirected to localhost:3000/cart Completed 302 Found in 74ms (ActiveRecord: 5.7ms | Allocations: 7829)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 12:11:15 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (10.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (4.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (14.5ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 43.3ms | Allocations: 6906)
Rendered layout layouts/application.html.erb (Duration: 60.4ms | Allocations: 14662)

Completed 200 OK in 88ms (Views: 41.3ms | ActiveRecord: 29.7ms | Allocations: 17010)

Started PATCH “/order_lines/3” for 127.0.0.1 at 2022-07-18 12:11:17 -0500 Processing by OrderLinesController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"5", "quantity"=>"2"}, "commit"=>"Update", "id"=>"3"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:60:in `set_order_line'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:60:in `set_order_line'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
TRANSACTION (5.4ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:29:in `update'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
OrderLine Update (1.6ms)  UPDATE "order_lines" SET "quantity" = $1, "total" = $2, "updated_at" = $3 WHERE "order_lines"."id" = $4  [["quantity", 2], ["total", "36.0"], ["updated_at", "2022-07-18 17:11:17.666683"], ["id", 3]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
OrderLine Load (0.9ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
Order Update (2.1ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "71.0"], ["updated_at", "2022-07-18 17:11:17.676293"], ["id", 1]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (1.5ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:29:in `update'

Redirected to localhost:3000/cart Completed 302 Found in 48ms (ActiveRecord: 12.8ms | Allocations: 7829)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 12:11:17 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (1.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 49.4ms | Allocations: 6906)
Rendered layout layouts/application.html.erb (Duration: 64.1ms | Allocations: 14618)

Completed 200 OK in 70ms (Views: 62.2ms | ActiveRecord: 2.9ms | Allocations: 16947)

Started PATCH “/order_lines/3” for 127.0.0.1 at 2022-07-18 12:11:19 -0500 Processing by OrderLinesController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"5", "quantity"=>"4"}, "commit"=>"Update", "id"=>"3"}
Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.6ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:60:in `set_order_line'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:60:in `set_order_line'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
TRANSACTION (1.7ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:29:in `update'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
OrderLine Update (1.2ms)  UPDATE "order_lines" SET "quantity" = $1, "total" = $2, "updated_at" = $3 WHERE "order_lines"."id" = $4  [["quantity", 4], ["total", "72.0"], ["updated_at", "2022-07-18 17:11:19.605200"], ["id", 3]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
OrderLine Load (1.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
Order Update (1.8ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "107.0"], ["updated_at", "2022-07-18 17:11:19.615036"], ["id", 1]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (1.1ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:29:in `update'

Redirected to localhost:3000/cart Completed 302 Found in 51ms (ActiveRecord: 9.2ms | Allocations: 7806)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 12:11:19 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 21.7ms | Allocations: 6906)
Rendered layout layouts/application.html.erb (Duration: 34.6ms | Allocations: 14610)

Completed 200 OK in 44ms (Views: 34.2ms | ActiveRecord: 1.6ms | Allocations: 16942)

Started GET “/” for 127.0.0.1 at 2022-07-18 12:11:20 -0500 Processing by ProductsController#index as HTML

Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 19.9ms | Allocations: 8563)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 3470)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.3ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2635)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 2635)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2635)
Tag Load (3.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 2635)
Tag Load (5.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 2635)
Tag Load (7.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 21.1ms | Allocations: 2635)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 2635)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 2635)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.8ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 3424)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (2.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 18.1ms | Allocations: 3429)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 319.3ms | Allocations: 67235)
Rendered layout layouts/application.html.erb (Duration: 338.7ms | Allocations: 74988)

Completed 200 OK in 358ms (Views: 276.0ms | ActiveRecord: 64.0ms | Allocations: 76633)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-18 12:11:22 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"5", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 1], ["product_id", 5], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:51:in `new_or_existing_product'
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:53:in `new_or_existing_product'
TRANSACTION (0.5ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Update (0.5ms)  UPDATE "order_lines" SET "quantity" = $1, "total" = $2, "updated_at" = $3 WHERE "order_lines"."id" = $4  [["quantity", 6], ["total", "108.0"], ["updated_at", "2022-07-18 17:11:23.006216"], ["id", 3]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Load (1.1ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
Order Update (1.0ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "143.0"], ["updated_at", "2022-07-18 17:11:23.012174"], ["id", 1]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (1.2ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 44ms (ActiveRecord: 6.1ms | Allocations: 7395)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 12:11:23 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (4.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
Product Load (2.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.7ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 30.9ms | Allocations: 6906)
Rendered layout layouts/application.html.erb (Duration: 52.5ms | Allocations: 14662)

Completed 200 OK in 70ms (Views: 48.6ms | ActiveRecord: 9.3ms | Allocations: 16994)

Started GET “/” for 127.0.0.1 at 2022-07-18 12:11:24 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 22.0ms | Allocations: 8562)
Product Exists? (1.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (2.1ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (9.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (3.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 28.0ms | Allocations: 3470)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (6.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.2ms | Allocations: 2635)
Tag Load (3.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 2635)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2635)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 33.8ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 19.6ms | Allocations: 3424)
Tag Load (3.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 27.5ms | Allocations: 3429)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 22.1ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 369.3ms | Allocations: 67260)
Rendered layout layouts/application.html.erb (Duration: 386.2ms | Allocations: 75013)

Completed 200 OK in 402ms (Views: 311.3ms | ActiveRecord: 76.1ms | Allocations: 76682)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-18 12:11:25 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"5", "quantity"=>"4"}, "commit"=>"Add to Cart"}
Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (1.1ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 1], ["product_id", 5], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:51:in `new_or_existing_product'
User Load (2.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:53:in `new_or_existing_product'
TRANSACTION (1.6ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Update (2.4ms)  UPDATE "order_lines" SET "quantity" = $1, "total" = $2, "updated_at" = $3 WHERE "order_lines"."id" = $4  [["quantity", 10], ["total", "180.0"], ["updated_at", "2022-07-18 17:11:26.038703"], ["id", 3]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
Order Update (2.0ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "215.0"], ["updated_at", "2022-07-18 17:11:26.048746"], ["id", 1]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (22.6ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 72ms (ActiveRecord: 33.7ms | Allocations: 7382)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 12:11:26 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 20.8ms | Allocations: 6906)
Rendered layout layouts/application.html.erb (Duration: 36.1ms | Allocations: 14610)

Completed 200 OK in 48ms (Views: 34.6ms | ActiveRecord: 2.3ms | Allocations: 16947)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 14:02:09 -0500 Processing by OrdersController#cart as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.4ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 70.2ms | Allocations: 20484)
Rendered layout layouts/application.html.erb (Duration: 106.5ms | Allocations: 43328)

Completed 200 OK in 144ms (Views: 106.0ms | ActiveRecord: 9.7ms | Allocations: 55767)

Started GET “/” for 127.0.0.1 at 2022-07-18 14:02:17 -0500 Processing by ProductsController#index as HTML

Order Load (1.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (3.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 31.1ms | Allocations: 12506)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (4.0ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 24.0ms | Allocations: 10004)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2844)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 2635)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 2635)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 5069)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 3429)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 256.3ms | Allocations: 79807)
Rendered layout layouts/application.html.erb (Duration: 270.6ms | Allocations: 87750)

Completed 200 OK in 298ms (Views: 253.0ms | ActiveRecord: 28.6ms | Allocations: 90209)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 14:02:20 -0500 Processing by OrdersController#cart as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 1], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 56.7ms | Allocations: 6931)
Rendered layout layouts/application.html.erb (Duration: 147.3ms | Allocations: 14660)

Completed 200 OK in 187ms (Views: 149.5ms | ActiveRecord: 2.4ms | Allocations: 17090)

Started PATCH “/orders/1” for 127.0.0.1 at 2022-07-18 14:02:21 -0500 Processing by OrdersController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"1"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:48:in `set_order'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:48:in `set_order'
TRANSACTION (0.1ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.4ms)  UPDATE "orders" SET "date" = $1, "status" = $2, "updated_at" = $3 WHERE "orders"."id" = $4  [["date", "2022-07-18"], ["status", 1], ["updated_at", "2022-07-18 19:02:21.129651"], ["id", 1]]
↳ app/controllers/orders_controller.rb:32:in `update'
TRANSACTION (2.8ms)  COMMIT
↳ app/controllers/orders_controller.rb:32:in `update'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:53:in `block in update_stock'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'
Product Exists? (1.4ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 AND "products"."id" != $2 LIMIT $3  [["name", "doritos"], ["id", 1], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'
Product Update (0.5ms)  UPDATE "products" SET "stock" = $1, "updated_at" = $2 WHERE "products"."id" = $3  [["stock", 45], ["updated_at", "2022-07-18 19:02:21.147659"], ["id", 1]]
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'
TRANSACTION (1.3ms)  COMMIT
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:53:in `block in update_stock'
TRANSACTION (0.6ms)  BEGIN
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" WHERE "products"."name" = $1 AND "products"."id" != $2 LIMIT $3  [["name", "ruffles"], ["id", 5], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'
Product Update (1.6ms)  UPDATE "products" SET "stock" = $1, "updated_at" = $2 WHERE "products"."id" = $3  [["stock", 50], ["updated_at", "2022-07-18 19:02:21.164116"], ["id", 5]]
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'
TRANSACTION (25.7ms)  COMMIT
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'

Redirected to localhost:3000/products Completed 302 Found in 92ms (ActiveRecord: 36.8ms | Allocations: 12913)

Started GET “/products” for 127.0.0.1 at 2022-07-18 14:02:21 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 7.5ms | Allocations: 8720)
Product Exists? (0.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 3657)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 3425)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 15], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 15.8ms | Allocations: 3429)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 3], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 1], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 5], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2635)
Rendered products/index.html.erb within layouts/application (Duration: 185.9ms | Allocations: 67629)
Rendered layout layouts/application.html.erb (Duration: 203.7ms | Allocations: 75491)

Completed 200 OK in 209ms (Views: 182.7ms | ActiveRecord: 21.7ms | Allocations: 77171)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-18 15:51:58 -0500

ActiveRecord::SchemaMigration Pluck (0.5ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by Devise::SessionsController#destroy as HTML

User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 379ms (ActiveRecord: 5.1ms | Allocations: 288034)

Started GET “/” for 127.0.0.1 at 2022-07-18 15:51:59 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 25.9ms | Allocations: 14216)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.2ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 38.3ms | Allocations: 12365)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 2063)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.2ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1837)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1819)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 248.6ms | Allocations: 68344)
Rendered layout layouts/application.html.erb (Duration: 468.3ms | Allocations: 123714)

Completed 200 OK in 531ms (Views: 449.8ms | ActiveRecord: 29.3ms | Allocations: 142972)

Started GET “/” for 127.0.0.1 at 2022-07-18 15:52:00 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.1ms | Allocations: 8592)
Product Exists? (1.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1907)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1819)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1824)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1837)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1819)
Tag Load (4.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 190.2ms | Allocations: 47819)
Rendered layout layouts/application.html.erb (Duration: 207.0ms | Allocations: 55483)

Completed 200 OK in 216ms (Views: 191.2ms | ActiveRecord: 17.9ms | Allocations: 56970)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-18 15:52:02 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 5.9ms | Allocations: 728)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 13.1ms | Allocations: 3514)
Rendered layout layouts/application.html.erb (Duration: 31.6ms | Allocations: 11446)

Completed 200 OK in 38ms (Views: 34.4ms | ActiveRecord: 0.0ms | Allocations: 13179)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-18 15:52:07 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"alvaro@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 277ms (ActiveRecord: 0.3ms | Allocations: 4361)

Started GET “/” for 127.0.0.1 at 2022-07-18 15:52:08 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 7.6ms | Allocations: 8633)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2442)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.1ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 108.7ms | Allocations: 42286)
Rendered layout layouts/application.html.erb (Duration: 121.5ms | Allocations: 50092)

Completed 200 OK in 126ms (Views: 115.8ms | ActiveRecord: 6.6ms | Allocations: 51736)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 15:52:11 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 6.8ms | Allocations: 2764)
Rendered products/new.html.erb within layouts/application (Duration: 7.8ms | Allocations: 3058)
Rendered layout layouts/application.html.erb (Duration: 21.6ms | Allocations: 10732)

Completed 200 OK in 24ms (Views: 22.1ms | ActiveRecord: 0.2ms | Allocations: 11120)

Started GET “/” for 127.0.0.1 at 2022-07-18 15:52:20 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 26.2ms | Allocations: 12644)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 37.5ms | Allocations: 12345)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1711)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1493)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 173.3ms | Allocations: 58500)
Rendered layout layouts/application.html.erb (Duration: 216.8ms | Allocations: 81129)

Completed 200 OK in 296ms (Views: 198.0ms | ActiveRecord: 37.0ms | Allocations: 95255)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 15:52:25 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 14.9ms | Allocations: 5909)
Rendered products/new.html.erb within layouts/application (Duration: 15.2ms | Allocations: 5993)
Rendered layout layouts/application.html.erb (Duration: 53.2ms | Allocations: 13668)

Completed 200 OK in 59ms (Views: 58.0ms | ActiveRecord: 0.4ms | Allocations: 13973)

Started POST “/products/new” for 127.0.0.1 at 2022-07-18 15:52:33 -0500

ActionController::RoutingError (No route matches [POST] “/products/new”):

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 15:52:33 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 9.0ms | Allocations: 5992)
Rendered products/new.html.erb within layouts/application (Duration: 10.4ms | Allocations: 6074)
Rendered layout layouts/application.html.erb (Duration: 28.6ms | Allocations: 13911)

Completed 200 OK in 32ms (Views: 30.8ms | ActiveRecord: 0.3ms | Allocations: 14222)

Started GET “/” for 127.0.0.1 at 2022-07-18 15:52:54 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 25.8ms | Allocations: 12645)
Product Exists? (1.0ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 39.4ms | Allocations: 12346)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1711)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1495)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1512)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 212.8ms | Allocations: 58503)
Rendered layout layouts/application.html.erb (Duration: 247.1ms | Allocations: 81263)

Completed 200 OK in 306ms (Views: 223.3ms | ActiveRecord: 34.0ms | Allocations: 95293)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 15:52:58 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 12.1ms | Allocations: 2420)
Rendered products/new.html.erb within layouts/application (Duration: 15.7ms | Allocations: 2504)
Rendered layout layouts/application.html.erb (Duration: 37.5ms | Allocations: 10179)

Completed 200 OK in 42ms (Views: 40.5ms | ActiveRecord: 0.2ms | Allocations: 10517)

Started POST “/products” for 127.0.0.1 at 2022-07-18 15:53:05 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.0ms | Allocations: 3291)

NameError (uninitialized constant ProductsController::ProductCreatorService

@product = authorize ProductCreatorService.call(product_params)
                     ^^^^^^^^^^^^^^^^^^^^^

Did you mean? ProductsHelper):

app/controllers/products_controller.rb:27:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 15:53:59 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 30.7ms | Allocations: 6069)
Rendered products/new.html.erb within layouts/application (Duration: 31.9ms | Allocations: 6164)
Rendered layout layouts/application.html.erb (Duration: 77.1ms | Allocations: 28947)

Completed 200 OK in 107ms (Views: 82.0ms | ActiveRecord: 7.9ms | Allocations: 35828)

Started POST “/products” for 127.0.0.1 at 2022-07-18 15:54:06 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 29ms (ActiveRecord: 0.0ms | Allocations: 3206)

NameError (uninitialized constant ProductsController::ProductCreatorService

@product = authorize ProductCreatorService.call(product_params)
                     ^^^^^^^^^^^^^^^^^^^^^

Did you mean? ProductsHelper):

app/controllers/products_controller.rb:27:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 15:54:20 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 20.5ms | Allocations: 6063)
Rendered products/new.html.erb within layouts/application (Duration: 21.6ms | Allocations: 6158)
Rendered layout layouts/application.html.erb (Duration: 59.7ms | Allocations: 28937)

Completed 200 OK in 84ms (Views: 59.0ms | ActiveRecord: 7.3ms | Allocations: 35775)

Started POST “/products” for 127.0.0.1 at 2022-07-18 15:54:22 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.0ms | Allocations: 3206)

NameError (uninitialized constant ProductsController::ProductCreatorService

@product = ProductCreatorService.call(product_params)
           ^^^^^^^^^^^^^^^^^^^^^

Did you mean? ProductsHelper):

app/controllers/products_controller.rb:27:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 15:55:00 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 26.2ms | Allocations: 6075)
Rendered products/new.html.erb within layouts/application (Duration: 26.6ms | Allocations: 6170)
Rendered layout layouts/application.html.erb (Duration: 63.3ms | Allocations: 28953)

Completed 200 OK in 85ms (Views: 61.5ms | ActiveRecord: 7.0ms | Allocations: 35905)

Started POST “/products” for 127.0.0.1 at 2022-07-18 15:55:01 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms | Allocations: 1412)

Zeitwerk::NameError (expected file /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/services/products/product_creator_service.rb to define constant Products::ProductCreatorService, but didn’t

raise Zeitwerk::NameError.new("expected file #{file} to define constant #{cpath}, but didn't", cref.last)
^^^^^):

app/controllers/products_controller.rb:27:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:02:49 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (1.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 26.1ms | Allocations: 5630)
Rendered products/new.html.erb within layouts/application (Duration: 26.8ms | Allocations: 5725)
Rendered layout layouts/application.html.erb (Duration: 79.9ms | Allocations: 28508)

Completed 200 OK in 121ms (Views: 81.5ms | ActiveRecord: 10.6ms | Allocations: 38048)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:02:51 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.0ms | Allocations: 2258)

ArgumentError (Unknown validator: ‘UniquenessValidator’):

app/forms/product_form.rb:6:in ‘<class:ProductForm>’ app/forms/product_form.rb:1:in ‘<main>’ app/services/products/product_creator_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:27:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:04:56 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 27.8ms | Allocations: 6087)
Rendered products/new.html.erb within layouts/application (Duration: 33.9ms | Allocations: 6182)
Rendered layout layouts/application.html.erb (Duration: 85.6ms | Allocations: 28966)

Completed 200 OK in 128ms (Views: 84.6ms | ActiveRecord: 13.5ms | Allocations: 35953)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:04:57 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms | Allocations: 1816)

ArgumentError (Unknown validator: ‘UniquenessValidator’):

app/forms/product_form.rb:7:in ‘<class:ProductForm>’ app/forms/product_form.rb:1:in ‘<main>’ app/services/products/product_creator_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:27:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:07:23 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (1.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 38.6ms | Allocations: 6072)
Rendered products/new.html.erb within layouts/application (Duration: 38.9ms | Allocations: 6167)
Rendered layout layouts/application.html.erb (Duration: 115.3ms | Allocations: 28951)

Completed 200 OK in 162ms (Views: 117.4ms | ActiveRecord: 11.1ms | Allocations: 35906)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:07:24 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms | Allocations: 2087)

ActiveModel::UnknownAttributeError (unknown attribute ‘description’ for ProductForm.

raise UnknownAttributeError.new(self, k.to_s)
^^^^^):

app/services/products/product_creator_service.rb:7:in ‘new’ app/services/products/product_creator_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:27:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:07:47 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 36.1ms | Allocations: 6069)
Rendered products/new.html.erb within layouts/application (Duration: 36.7ms | Allocations: 6164)
Rendered layout layouts/application.html.erb (Duration: 78.4ms | Allocations: 28948)

Completed 200 OK in 131ms (Views: 76.8ms | ActiveRecord: 10.4ms | Allocations: 35830)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:07:49 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.1ms)  BEGIN
↳ app/services/products/product_creator_service.rb:12:in `call'
Product Create (25.5ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "NEW PRODUCT"], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-18 21:07:49.114941"], ["updated_at", "2022-07-18 21:07:49.114941"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:12:in `call'
TRANSACTION (1.8ms)  COMMIT
↳ app/services/products/product_creator_service.rb:12:in `call'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:27:in `create'

Completed 500 Internal Server Error in 48ms (ActiveRecord: 27.7ms | Allocations: 6434)

Pundit::NotDefinedError (unable to find policy ‘TrueClassPolicy` for `true`):

app/controllers/products_controller.rb:27:in ‘create’

Product Load (0.6ms)  SELECT "products".* FROM "products"

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:09:13 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 22.5ms | Allocations: 6074)
Rendered products/new.html.erb within layouts/application (Duration: 23.4ms | Allocations: 6169)
Rendered layout layouts/application.html.erb (Duration: 69.5ms | Allocations: 28955)

Completed 200 OK in 93ms (Views: 69.5ms | ActiveRecord: 6.8ms | Allocations: 35836)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:09:19 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT1", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.2ms)  BEGIN
↳ app/services/products/product_creator_service.rb:12:in `call'
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "NEW PRODUCT1"], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-18 21:09:19.174196"], ["updated_at", "2022-07-18 21:09:19.174196"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:12:in `call'
TRANSACTION (1.1ms)  COMMIT
↳ app/services/products/product_creator_service.rb:12:in `call'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:27:in `create'

Completed 500 Internal Server Error in 18ms (ActiveRecord: 2.1ms | Allocations: 5285)

Pundit::NotDefinedError (unable to find policy ‘TrueClassPolicy` for `true`):

app/controllers/products_controller.rb:27:in ‘create’

Product Load (3.9ms)  SELECT "products".* FROM "products"

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:09:52 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 13.6ms | Allocations: 2366)
Rendered products/new.html.erb within layouts/application (Duration: 14.3ms | Allocations: 2448)
Rendered layout layouts/application.html.erb (Duration: 32.0ms | Allocations: 10285)

Completed 200 OK in 35ms (Views: 34.0ms | ActiveRecord: 0.2ms | Allocations: 10607)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:10:11 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 9.8ms | Allocations: 2959)
Rendered products/new.html.erb within layouts/application (Duration: 12.3ms | Allocations: 3259)
Rendered layout layouts/application.html.erb (Duration: 29.8ms | Allocations: 11687)

Completed 200 OK in 35ms (Views: 33.4ms | ActiveRecord: 0.3ms | Allocations: 12542)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:10:12 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.0ms | Allocations: 2855)

NameError (uninitialized constant ProductCreatorService::NotValidProductRecord):

app/services/products/product_creator_service.rb:14:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:27:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:12:17 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 34.5ms | Allocations: 6408)
Rendered products/new.html.erb within layouts/application (Duration: 36.8ms | Allocations: 6712)
Rendered layout layouts/application.html.erb (Duration: 103.1ms | Allocations: 30046)

Completed 200 OK in 140ms (Views: 101.4ms | ActiveRecord: 7.8ms | Allocations: 37341)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:12:20 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.0ms | Allocations: 3710)

NameError (uninitialized constant ProductCreatorService::NotValidProductRecord):

app/services/products/product_creator_service.rb:14:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:27:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:15:23 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 27.0ms | Allocations: 6061)
Rendered products/new.html.erb within layouts/application (Duration: 27.4ms | Allocations: 6156)
Rendered layout layouts/application.html.erb (Duration: 104.6ms | Allocations: 28962)

Completed 200 OK in 131ms (Views: 103.0ms | ActiveRecord: 10.3ms | Allocations: 35924)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:15:26 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.0ms | Allocations: 3759)

NameError (uninitialized constant ProductCreatorService::NotValidProductRecord):

app/services/products/product_creator_service.rb:14:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:27:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:16:27 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 9.1ms | Allocations: 2510)
Rendered products/new.html.erb within layouts/application (Duration: 11.1ms | Allocations: 2592)
Rendered layout layouts/application.html.erb (Duration: 39.4ms | Allocations: 10382)

Completed 200 OK in 52ms (Views: 50.6ms | ActiveRecord: 0.3ms | Allocations: 10711)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:16:31 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT2", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.1ms)  BEGIN
↳ app/services/products/product_creator_service.rb:12:in `call'
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "NEW PRODUCT2"], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-18 21:16:31.773522"], ["updated_at", "2022-07-18 21:16:31.773522"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:12:in `call'
TRANSACTION (2.9ms)  COMMIT
↳ app/services/products/product_creator_service.rb:12:in `call'
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:27:in `create'

Completed 500 Internal Server Error in 19ms (ActiveRecord: 4.3ms | Allocations: 4185)

Pundit::NotDefinedError (unable to find policy ‘TrueClassPolicy` for `true`):

app/controllers/products_controller.rb:27:in ‘create’

Product Load (2.6ms)  SELECT "products".* FROM "products"

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:17:02 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 24.1ms | Allocations: 6062)
Rendered products/new.html.erb within layouts/application (Duration: 24.5ms | Allocations: 6157)
Rendered layout layouts/application.html.erb (Duration: 69.0ms | Allocations: 28940)

Completed 200 OK in 100ms (Views: 66.8ms | ActiveRecord: 9.4ms | Allocations: 35893)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:17:05 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.0ms | Allocations: 3746)

NameError (uninitialized constant ProductCreatorService::NotValidProductRecord):

app/services/products/product_creator_service.rb:14:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:27:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:17:19 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (2.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 27.0ms | Allocations: 6067)
Rendered products/new.html.erb within layouts/application (Duration: 27.3ms | Allocations: 6162)
Rendered layout layouts/application.html.erb (Duration: 66.3ms | Allocations: 28946)

Completed 200 OK in 105ms (Views: 60.1ms | ActiveRecord: 22.7ms | Allocations: 35832)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:17:21 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 27ms (ActiveRecord: 0.0ms | Allocations: 3744)

NameError (uninitialized constant ProductCreatorService::NotValidProductRecord):

app/services/products/product_creator_service.rb:14:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:27:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:18:05 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 44.8ms | Allocations: 6086)
Rendered products/new.html.erb within layouts/application (Duration: 48.4ms | Allocations: 6181)
Rendered layout layouts/application.html.erb (Duration: 89.2ms | Allocations: 28965)

Completed 200 OK in 121ms (Views: 87.1ms | ActiveRecord: 10.0ms | Allocations: 35806)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:18:06 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.0ms | Allocations: 3747)

NameError (uninitialized constant ProductCreatorService::NotValidProductRecord):

app/services/products/product_creator_service.rb:14:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:27:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:20:58 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 50.5ms | Allocations: 6070)
Rendered products/new.html.erb within layouts/application (Duration: 53.0ms | Allocations: 6165)
Rendered layout layouts/application.html.erb (Duration: 141.1ms | Allocations: 28995)

Completed 200 OK in 185ms (Views: 139.6ms | ActiveRecord: 8.4ms | Allocations: 35892)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:21:04 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT3", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.2ms)  BEGIN
↳ app/services/products/product_creator_service.rb:12:in `call'
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "NEW PRODUCT3"], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-18 21:21:04.542352"], ["updated_at", "2022-07-18 21:21:04.542352"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:12:in `call'
TRANSACTION (1.0ms)  COMMIT
↳ app/services/products/product_creator_service.rb:12:in `call'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:28:in `create'

Completed 500 Internal Server Error in 18ms (ActiveRecord: 1.8ms | Allocations: 5283)

Pundit::NotDefinedError (unable to find policy ‘TrueClassPolicy` for `true`):

app/controllers/products_controller.rb:28:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:22:06 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 51.3ms | Allocations: 6063)
Rendered products/new.html.erb within layouts/application (Duration: 57.4ms | Allocations: 6158)
Rendered layout layouts/application.html.erb (Duration: 167.1ms | Allocations: 28989)

Completed 200 OK in 214ms (Views: 170.3ms | ActiveRecord: 10.0ms | Allocations: 35942)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:22:09 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT4", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.2ms)  BEGIN
↳ app/services/products/product_creator_service.rb:12:in `call'
Product Create (1.8ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "NEW PRODUCT4"], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-18 21:22:09.585195"], ["updated_at", "2022-07-18 21:22:09.585195"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:12:in `call'
TRANSACTION (6.1ms)  COMMIT
↳ app/services/products/product_creator_service.rb:12:in `call'

Completed 500 Internal Server Error in 28ms (ActiveRecord: 8.0ms | Allocations: 4956)

NoMethodError (undefined method ‘save’ for true:TrueClass

if @product.save
           ^^^^^):

app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:22:27 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 41.5ms | Allocations: 6071)
Rendered products/new.html.erb within layouts/application (Duration: 47.5ms | Allocations: 6166)
Rendered layout layouts/application.html.erb (Duration: 120.0ms | Allocations: 28995)

Completed 200 OK in 152ms (Views: 121.0ms | ActiveRecord: 11.1ms | Allocations: 35948)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:22:30 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT5", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.2ms)  BEGIN
↳ app/services/products/product_creator_service.rb:12:in `call'
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "NEW PRODUCT5"], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-18 21:22:30.129187"], ["updated_at", "2022-07-18 21:22:30.129187"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:12:in `call'
TRANSACTION (1.1ms)  COMMIT
↳ app/services/products/product_creator_service.rb:12:in `call'

Completed 500 Internal Server Error in 19ms (ActiveRecord: 1.6ms | Allocations: 4953)

NoMethodError (undefined method ‘persisted?’ for true:TrueClass

if @product.persisted?
           ^^^^^^^^^^^):

app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:22:45 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 21.1ms | Allocations: 6095)
Rendered products/new.html.erb within layouts/application (Duration: 22.7ms | Allocations: 6190)
Rendered layout layouts/application.html.erb (Duration: 94.4ms | Allocations: 28974)

Completed 200 OK in 128ms (Views: 95.3ms | ActiveRecord: 7.4ms | Allocations: 35932)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:22:47 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT5", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.2ms)  BEGIN
↳ app/services/products/product_creator_service.rb:12:in `call'
Product Create (3.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "NEW PRODUCT5"], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-18 21:22:47.301732"], ["updated_at", "2022-07-18 21:22:47.301732"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:12:in `call'
TRANSACTION (85.2ms)  COMMIT
↳ app/services/products/product_creator_service.rb:12:in `call'

Completed 500 Internal Server Error in 108ms (ActiveRecord: 88.8ms | Allocations: 4943)

NoMethodError (undefined method ‘persisted?’ for true:TrueClass

if @product.persisted?
           ^^^^^^^^^^^):

app/controllers/products_controller.rb:31:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:23:21 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 30.4ms | Allocations: 6074)
Rendered products/new.html.erb within layouts/application (Duration: 31.9ms | Allocations: 6169)
Rendered layout layouts/application.html.erb (Duration: 107.7ms | Allocations: 28953)

Completed 200 OK in 156ms (Views: 109.9ms | ActiveRecord: 11.5ms | Allocations: 35906)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:23:22 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT5", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.1ms)  BEGIN
↳ app/services/products/product_creator_service.rb:12:in `call'
Product Create (3.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "NEW PRODUCT5"], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-18 21:23:22.609452"], ["updated_at", "2022-07-18 21:23:22.609452"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:12:in `call'
TRANSACTION (1.3ms)  COMMIT
↳ app/services/products/product_creator_service.rb:12:in `call'

Completed 500 Internal Server Error in 31ms (ActiveRecord: 4.7ms | Allocations: 4989)

NoMethodError (undefined method ‘persisted?’ for true:TrueClass

if @product.persisted?
           ^^^^^^^^^^^):

app/controllers/products_controller.rb:31:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:23:45 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 41.2ms | Allocations: 6071)
Rendered products/new.html.erb within layouts/application (Duration: 42.3ms | Allocations: 6166)
Rendered layout layouts/application.html.erb (Duration: 111.9ms | Allocations: 28978)

Completed 200 OK in 173ms (Views: 115.9ms | ActiveRecord: 14.2ms | Allocations: 35867)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:23:46 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT5", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.1ms)  BEGIN
↳ app/services/products/product_creator_service.rb:12:in `call'
Product Create (2.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "NEW PRODUCT5"], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-18 21:23:46.788113"], ["updated_at", "2022-07-18 21:23:46.788113"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:12:in `call'
TRANSACTION (1.6ms)  COMMIT
↳ app/services/products/product_creator_service.rb:12:in `call'

Redirected to localhost:3000/products Completed 302 Found in 27ms (ActiveRecord: 4.0ms | Allocations: 3853)

Started GET “/products” for 127.0.0.1 at 2022-07-18 16:23:46 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 34.3ms | Allocations: 13125)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 27.3ms | Allocations: 9575)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1711)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1512)
Tag Load (3.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1494)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (4.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1493)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1493)
Tag Load (3.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1493)
Tag Load (4.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1464)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 22]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1464)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1464)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 24]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 25]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1464)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 26]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1464)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 27]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1464)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 28]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 29]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 266.5ms | Allocations: 68733)
Rendered layout layouts/application.html.erb (Duration: 282.9ms | Allocations: 76560)

Completed 200 OK in 349ms (Views: 241.6ms | ActiveRecord: 56.6ms | Allocations: 86296)

Started DELETE “/products/29” for 127.0.0.1 at 2022-07-18 16:23:50 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"29"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 29], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:69:in `set_product'
User Load (1.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:69:in `set_product'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/products_controller.rb:51:in `destroy'
OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."product_id" = $1  [["product_id", 29]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Like Load (9.0ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1  [["product_id", 29]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Comment Load (19.7ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 29], ["commentable_type", "Product"]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Product::HABTM_Tags Delete All (5.4ms)  DELETE FROM "products_tags" WHERE "products_tags"."product_id" = $1  [["product_id", 29]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Product Destroy (0.7ms)  DELETE FROM "products" WHERE "products"."id" = $1  [["id", 29]]
↳ app/controllers/products_controller.rb:51:in `destroy'
TRANSACTION (1.1ms)  COMMIT
↳ app/controllers/products_controller.rb:51:in `destroy'

Redirected to localhost:3000/products Completed 302 Found in 88ms (ActiveRecord: 41.0ms | Allocations: 12311)

Started GET “/products” for 127.0.0.1 at 2022-07-18 16:23:51 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.9ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.7ms | Allocations: 8630)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.2ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 2419)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 28.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.5ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 22]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 24]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 25]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 26]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 27]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 28]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 191.3ms | Allocations: 54522)
Rendered layout layouts/application.html.erb (Duration: 207.3ms | Allocations: 62346)

Completed 200 OK in 213ms (Views: 191.1ms | ActiveRecord: 17.2ms | Allocations: 63805)

Started DELETE “/products/28” for 127.0.0.1 at 2022-07-18 16:23:53 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"28"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 28], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:69:in `set_product'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:69:in `set_product'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/products_controller.rb:51:in `destroy'
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."product_id" = $1  [["product_id", 28]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1  [["product_id", 28]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 28], ["commentable_type", "Product"]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Product::HABTM_Tags Delete All (0.3ms)  DELETE FROM "products_tags" WHERE "products_tags"."product_id" = $1  [["product_id", 28]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Product Destroy (0.5ms)  DELETE FROM "products" WHERE "products"."id" = $1  [["id", 28]]
↳ app/controllers/products_controller.rb:51:in `destroy'
TRANSACTION (1.2ms)  COMMIT
↳ app/controllers/products_controller.rb:51:in `destroy'

Redirected to localhost:3000/products Completed 302 Found in 31ms (ActiveRecord: 3.4ms | Allocations: 6281)

Started GET “/products” for 127.0.0.1 at 2022-07-18 16:23:54 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.1ms | Allocations: 8568)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2333)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 22]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 24]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 25]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 26]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 27]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 150.3ms | Allocations: 52817)
Rendered layout layouts/application.html.erb (Duration: 167.8ms | Allocations: 60538)

Completed 200 OK in 172ms (Views: 161.0ms | ActiveRecord: 7.9ms | Allocations: 61895)

Started DELETE “/products/27” for 127.0.0.1 at 2022-07-18 16:23:56 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"27"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 27], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:69:in `set_product'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:69:in `set_product'
TRANSACTION (0.4ms)  BEGIN
↳ app/controllers/products_controller.rb:51:in `destroy'
OrderLine Load (0.6ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."product_id" = $1  [["product_id", 27]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1  [["product_id", 27]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Comment Load (0.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 27], ["commentable_type", "Product"]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Product::HABTM_Tags Delete All (0.3ms)  DELETE FROM "products_tags" WHERE "products_tags"."product_id" = $1  [["product_id", 27]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Product Destroy (0.5ms)  DELETE FROM "products" WHERE "products"."id" = $1  [["id", 27]]
↳ app/controllers/products_controller.rb:51:in `destroy'
TRANSACTION (18.6ms)  COMMIT
↳ app/controllers/products_controller.rb:51:in `destroy'

Redirected to localhost:3000/products Completed 302 Found in 60ms (ActiveRecord: 21.8ms | Allocations: 6259)

Started GET “/products” for 127.0.0.1 at 2022-07-18 16:23:56 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.9ms | Allocations: 8568)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (4.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2333)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.5ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 19.0ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 1520)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 22]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 24]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 25]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 26]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 218.0ms | Allocations: 51308)
Rendered layout layouts/application.html.erb (Duration: 233.7ms | Allocations: 59021)

Completed 200 OK in 241ms (Views: 216.8ms | ActiveRecord: 18.1ms | Allocations: 60389)

Started DELETE “/products/26” for 127.0.0.1 at 2022-07-18 16:23:58 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"26"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 26], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:69:in `set_product'
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:69:in `set_product'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/products_controller.rb:51:in `destroy'
OrderLine Load (0.6ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."product_id" = $1  [["product_id", 26]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1  [["product_id", 26]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Comment Load (0.2ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 26], ["commentable_type", "Product"]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Product::HABTM_Tags Delete All (0.3ms)  DELETE FROM "products_tags" WHERE "products_tags"."product_id" = $1  [["product_id", 26]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Product Destroy (0.4ms)  DELETE FROM "products" WHERE "products"."id" = $1  [["id", 26]]
↳ app/controllers/products_controller.rb:51:in `destroy'
TRANSACTION (1.2ms)  COMMIT
↳ app/controllers/products_controller.rb:51:in `destroy'

Redirected to localhost:3000/products Completed 302 Found in 34ms (ActiveRecord: 4.0ms | Allocations: 6271)

Started GET “/products” for 127.0.0.1 at 2022-07-18 16:23:58 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 26.1ms | Allocations: 8567)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2333)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1512)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1464)
Tag Load (4.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 22]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1464)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 24]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1464)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 25]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 210.4ms | Allocations: 49740)
Rendered layout layouts/application.html.erb (Duration: 244.1ms | Allocations: 57461)

Completed 200 OK in 257ms (Views: 231.0ms | ActiveRecord: 19.1ms | Allocations: 58820)

Started DELETE “/products/25” for 127.0.0.1 at 2022-07-18 16:24:00 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"25"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 25], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:69:in `set_product'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:69:in `set_product'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/products_controller.rb:51:in `destroy'
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."product_id" = $1  [["product_id", 25]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Like Load (0.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1  [["product_id", 25]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Comment Load (0.7ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 25], ["commentable_type", "Product"]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Product::HABTM_Tags Delete All (0.7ms)  DELETE FROM "products_tags" WHERE "products_tags"."product_id" = $1  [["product_id", 25]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Product Destroy (1.0ms)  DELETE FROM "products" WHERE "products"."id" = $1  [["id", 25]]
↳ app/controllers/products_controller.rb:51:in `destroy'
TRANSACTION (1.4ms)  COMMIT
↳ app/controllers/products_controller.rb:51:in `destroy'

Redirected to localhost:3000/products Completed 302 Found in 35ms (ActiveRecord: 5.0ms | Allocations: 6273)

Started GET “/products” for 127.0.0.1 at 2022-07-18 16:24:00 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.8ms | Allocations: 8568)
Product Exists? (3.0ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 2333)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1494)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1512)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1494)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 22]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 24]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 212.9ms | Allocations: 48203)
Rendered layout layouts/application.html.erb (Duration: 227.4ms | Allocations: 55924)

Completed 200 OK in 235ms (Views: 213.1ms | ActiveRecord: 16.5ms | Allocations: 57268)

Started DELETE “/products/24” for 127.0.0.1 at 2022-07-18 16:24:02 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"24"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 24], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:69:in `set_product'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:69:in `set_product'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/products_controller.rb:51:in `destroy'
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."product_id" = $1  [["product_id", 24]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1  [["product_id", 24]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 24], ["commentable_type", "Product"]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Product::HABTM_Tags Delete All (0.3ms)  DELETE FROM "products_tags" WHERE "products_tags"."product_id" = $1  [["product_id", 24]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Product Destroy (0.5ms)  DELETE FROM "products" WHERE "products"."id" = $1  [["id", 24]]
↳ app/controllers/products_controller.rb:51:in `destroy'
TRANSACTION (1.7ms)  COMMIT
↳ app/controllers/products_controller.rb:51:in `destroy'

Redirected to localhost:3000/products Completed 302 Found in 29ms (ActiveRecord: 4.0ms | Allocations: 6258)

Started GET “/products” for 127.0.0.1 at 2022-07-18 16:24:02 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.8ms | Allocations: 8567)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2333)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1512)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 22]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 164.0ms | Allocations: 46664)
Rendered layout layouts/application.html.erb (Duration: 184.7ms | Allocations: 54384)

Completed 200 OK in 192ms (Views: 177.9ms | ActiveRecord: 8.3ms | Allocations: 55723)

Started DELETE “/products/23” for 127.0.0.1 at 2022-07-18 16:24:03 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"23"}
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 23], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:69:in `set_product'
User Load (2.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:69:in `set_product'
TRANSACTION (5.5ms)  BEGIN
↳ app/controllers/products_controller.rb:51:in `destroy'
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."product_id" = $1  [["product_id", 23]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1  [["product_id", 23]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Comment Load (1.1ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 23], ["commentable_type", "Product"]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Product::HABTM_Tags Delete All (1.7ms)  DELETE FROM "products_tags" WHERE "products_tags"."product_id" = $1  [["product_id", 23]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Product Destroy (3.6ms)  DELETE FROM "products" WHERE "products"."id" = $1  [["id", 23]]
↳ app/controllers/products_controller.rb:51:in `destroy'
TRANSACTION (1.1ms)  COMMIT
↳ app/controllers/products_controller.rb:51:in `destroy'

Redirected to localhost:3000/products Completed 302 Found in 42ms (ActiveRecord: 16.1ms | Allocations: 6267)

Started GET “/products” for 127.0.0.1 at 2022-07-18 16:24:03 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.8ms | Allocations: 8570)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 15.8ms | Allocations: 2357)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1494)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1494)
Tag Load (3.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 1494)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1494)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1494)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1512)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1494)
Tag Load (3.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1493)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1493)
Tag Load (3.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (3.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 22]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 193.0ms | Allocations: 45153)
Rendered layout layouts/application.html.erb (Duration: 216.2ms | Allocations: 52874)

Completed 200 OK in 226ms (Views: 177.7ms | ActiveRecord: 39.8ms | Allocations: 54197)

Started DELETE “/products/22” for 127.0.0.1 at 2022-07-18 16:24:05 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"22"}
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 22], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:69:in `set_product'
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:69:in `set_product'
TRANSACTION (2.0ms)  BEGIN
↳ app/controllers/products_controller.rb:51:in `destroy'
OrderLine Load (0.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."product_id" = $1  [["product_id", 22]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1  [["product_id", 22]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Comment Load (0.9ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 22], ["commentable_type", "Product"]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Product::HABTM_Tags Delete All (0.8ms)  DELETE FROM "products_tags" WHERE "products_tags"."product_id" = $1  [["product_id", 22]]
↳ app/controllers/products_controller.rb:51:in `destroy'
Product Destroy (0.6ms)  DELETE FROM "products" WHERE "products"."id" = $1  [["id", 22]]
↳ app/controllers/products_controller.rb:51:in `destroy'
TRANSACTION (1.1ms)  COMMIT
↳ app/controllers/products_controller.rb:51:in `destroy'

Redirected to localhost:3000/products Completed 302 Found in 28ms (ActiveRecord: 7.5ms | Allocations: 6267)

Started GET “/products” for 127.0.0.1 at 2022-07-18 16:24:05 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 22.9ms | Allocations: 8568)
Product Exists? (2.1ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 24.1ms | Allocations: 2333)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 194.7ms | Allocations: 43589)
Rendered layout layouts/application.html.erb (Duration: 208.3ms | Allocations: 51309)

Completed 200 OK in 217ms (Views: 194.6ms | ActiveRecord: 14.6ms | Allocations: 52660)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:24:17 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 18.3ms | Allocations: 2263)
Rendered products/new.html.erb within layouts/application (Duration: 18.7ms | Allocations: 2345)
Rendered layout layouts/application.html.erb (Duration: 46.9ms | Allocations: 10018)

Completed 200 OK in 50ms (Views: 48.5ms | ActiveRecord: 0.3ms | Allocations: 10308)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:24:23 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 27ms (ActiveRecord: 0.0ms | Allocations: 2825)

NameError (uninitialized constant ProductCreatorService::NotValidProductRecord):

app/services/products/product_creator_service.rb:14:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:27:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:26:58 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (1.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 29.4ms | Allocations: 6082)
Rendered products/new.html.erb within layouts/application (Duration: 29.8ms | Allocations: 6177)
Rendered layout layouts/application.html.erb (Duration: 287.8ms | Allocations: 28960)

Completed 200 OK in 316ms (Views: 280.6ms | ActiveRecord: 18.2ms | Allocations: 35913)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:27:02 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.0ms | Allocations: 3773)

NameError (uninitialized constant ProductCreatorService::NotValidProductRecord):

app/services/products/product_creator_service.rb:14:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:27:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:27:57 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 35.3ms | Allocations: 6079)
Rendered products/new.html.erb within layouts/application (Duration: 36.8ms | Allocations: 6175)
Rendered layout layouts/application.html.erb (Duration: 101.5ms | Allocations: 28938)

Completed 200 OK in 137ms (Views: 97.0ms | ActiveRecord: 14.3ms | Allocations: 35891)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:28:00 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 34ms (ActiveRecord: 0.0ms | Allocations: 3772)

NameError (uninitialized constant ProductCreatorService::NotValidProductRecord):

app/services/products/product_creator_service.rb:14:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:27:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:30:40 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 40.1ms | Allocations: 6079)
Rendered products/new.html.erb within layouts/application (Duration: 46.3ms | Allocations: 6174)
Rendered layout layouts/application.html.erb (Duration: 97.6ms | Allocations: 28958)

Completed 200 OK in 124ms (Views: 95.2ms | ActiveRecord: 9.1ms | Allocations: 35916)

Started POST “/products” for 127.0.0.1 at 2022-07-18 16:30:42 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.0ms | Allocations: 3731)

NameError (uninitialized constant ProductCreatorService::NotValidProductRecord):

app/services/products/product_creator_service.rb:14:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:27:in ‘create’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:34:03 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 68ms (ActiveRecord: 9.9ms | Allocations: 12693)

NameError (uninitialized constant ProductsController::ProductIndexService

@products = ProductIndexService.call
            ^^^^^^^^^^^^^^^^^^^

Did you mean? ProductCreatorService):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:34:42 -0500 Processing by ProductsController#index as HTML

Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 101ms (ActiveRecord: 8.4ms | Allocations: 12701)

NameError (uninitialized constant ProductsController::ProductIndexService

@products = ProductIndexService.new.call
            ^^^^^^^^^^^^^^^^^^^

Did you mean? ProductCreatorService):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:34:59 -0500

ActiveRecord::SchemaMigration Pluck (1.5ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 161ms (ActiveRecord: 11.5ms | Allocations: 20565)

NameError (uninitialized constant ProductsController::ProductIndexService

@products = ProductIndexService.call
            ^^^^^^^^^^^^^^^^^^^

Did you mean? ProductsHelper):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:35:03 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 48ms (ActiveRecord: 0.3ms | Allocations: 4152)

NameError (uninitialized constant ProductsController::ProductIndexService

@products = ProductIndexService.call
            ^^^^^^^^^^^^^^^^^^^

Did you mean? ProductsHelper):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:35:53 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 60ms (ActiveRecord: 11.0ms | Allocations: 12741)

NameError (uninitialized constant ProductsController::ProductIndexService

@products = ProductIndexService.call
            ^^^^^^^^^^^^^^^^^^^

Did you mean? ProductsHelper):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:35:55 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 38ms (ActiveRecord: 0.5ms | Allocations: 4030)

NameError (uninitialized constant ProductsController::ProductIndexService

@products = ProductIndexService.call
            ^^^^^^^^^^^^^^^^^^^

Did you mean? ProductsHelper):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:36:06 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 73ms (ActiveRecord: 8.2ms | Allocations: 12756)

NameError (uninitialized constant ProductsController::ProductIndexService

@products = ProductIndexService.call
            ^^^^^^^^^^^^^^^^^^^

Did you mean? ProductsHelper):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:36:08 -0500 Processing by ProductsController#index as HTML

Order Load (1.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 36ms (ActiveRecord: 1.3ms | Allocations: 4005)

NameError (uninitialized constant ProductsController::ProductIndexService

@products = ProductIndexService.call
            ^^^^^^^^^^^^^^^^^^^

Did you mean? ProductsHelper):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:36:17 -0500

ActiveRecord::SchemaMigration Pluck (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#index as HTML

Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 131ms (ActiveRecord: 17.3ms | Allocations: 20565)

NameError (uninitialized constant ProductsController::ProductIndexService

@products = ProductIndexService.call
            ^^^^^^^^^^^^^^^^^^^

Did you mean? ProductsHelper):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:38:06 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 36ms (ActiveRecord: 7.1ms | Allocations: 10898)

SyntaxError (/home/alvaro/Desktop/ApplaudoStudios/store v.3/app/services/application_service.rb:5: syntax error, unexpected ‘end’, expecting end-of-input):

app/services/application_service.rb:5: syntax error, unexpected ‘end’, expecting end-of-input app/services/application_service.rb:5: syntax error, unexpected ‘end’, expecting end-of-input app/services/application_service.rb:5: syntax error, unexpected ‘end’, expecting end-of-input app/services/products/product_index_service.rb:1:in ‘<main>’ app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:38:27 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 43ms (ActiveRecord: 8.2ms | Allocations: 11053)

Zeitwerk::NameError (expected file /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/services/products/product_index_service.rb to define constant Products::ProductIndexService, but didn’t

raise Zeitwerk::NameError.new("expected file #{file} to define constant #{cpath}, but didn't", cref.last)
^^^^^):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:38:38 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 85ms (ActiveRecord: 13.0ms | Allocations: 15350)

NameError (undefined local variable or method ‘params’ for #<ProductIndexService:0x00007ffb6fc0c9f8>

ordered_by_name_products = ProductsQuery.new.order_by_letter(params[:letter])
                                                             ^^^^^^):

app/services/products/product_index_service.rb:11:in ‘products_scope’ app/services/products/product_index_service.rb:5:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:39:33 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 400 Bad Request in 40ms (ActiveRecord: 7.7ms | Allocations: 10400)

ActionController::ParameterMissing (param is missing or the value is empty: product):

app/controllers/products_controller.rb:58:in ‘product_params’ app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:40:07 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 400 Bad Request in 40ms (ActiveRecord: 7.8ms | Allocations: 10373)

ActionController::ParameterMissing (param is missing or the value is empty: product):

app/controllers/products_controller.rb:58:in ‘product_params’ app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:40:09 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 400 Bad Request in 8ms (ActiveRecord: 0.2ms | Allocations: 1666)

ActionController::ParameterMissing (param is missing or the value is empty: product):

app/controllers/products_controller.rb:58:in ‘product_params’ app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:41:05 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 37ms (ActiveRecord: 8.9ms | Allocations: 10358)

ArgumentError (wrong number of arguments (given 1, expected 0)):

app/services/products/product_index_service.rb:2:in ‘initialize’ app/services/application_service.rb:3:in ‘new’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:41:23 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.2ms | Allocations: 1672)

ArgumentError (wrong number of arguments (given 1, expected 0)):

app/services/products/product_index_service.rb:2:in ‘initialize’ app/services/application_service.rb:3:in ‘new’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:41:50 -0500

ActiveRecord::SchemaMigration Pluck (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 132ms (ActiveRecord: 10.5ms | Allocations: 20574)

NameError (uninitialized constant ProductsController::ProductIndexService

@products = ProductIndexService.call(filter)
            ^^^^^^^^^^^^^^^^^^^

Did you mean? ProductsHelper):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:41:53 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 40ms (ActiveRecord: 0.5ms | Allocations: 4159)

NameError (uninitialized constant ProductsController::ProductIndexService

@products = ProductIndexService.call(filter)
            ^^^^^^^^^^^^^^^^^^^

Did you mean? ProductsHelper):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:42:07 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 54ms (ActiveRecord: 9.1ms | Allocations: 11083)

Zeitwerk::NameError (expected file /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/services/products/product_index_service.rb to define constant Products::ProductIndexService, but didn’t

raise Zeitwerk::NameError.new("expected file #{file} to define constant #{cpath}, but didn't", cref.last)
^^^^^):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:42:16 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 72ms (ActiveRecord: 11.4ms | Allocations: 15439)

NameError (undefined local variable or method ‘params’ for #<ProductIndexService:0x00007f0b0a9889f8 @params=#<ActionController::Parameters {} permitted: false>>

ordered_by_name_products = ProductsQuery.new.order_by_letter(params[:letter])
                                                             ^^^^^^

Did you mean? @params):

app/services/products/product_index_service.rb:13:in ‘products_scope’ app/services/products/product_index_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:42:34 -0500 Processing by ProductsController#index as HTML

Order Load (5.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 97ms (ActiveRecord: 18.4ms | Allocations: 15079)

NameError (undefined local variable or method ‘params’ for #<ProductIndexService:0x00007f0b0a7d3a40 @params=#<ActionController::Parameters {} permitted: false>> Did you mean? @params):

app/services/products/product_index_service.rb:13:in ‘products_scope’ app/services/products/product_index_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:42:38 -0500 Processing by ProductsController#index as HTML

Order Load (1.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 18ms (ActiveRecord: 1.3ms | Allocations: 2887)

NameError (undefined local variable or method ‘params’ for #<ProductIndexService:0x00007f0b0a809550 @params=#<ActionController::Parameters {} permitted: false>> Did you mean? @params):

app/services/products/product_index_service.rb:13:in ‘products_scope’ app/services/products/product_index_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:11:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:48:15 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 68ms (ActiveRecord: 6.1ms | Allocations: 17520)

NameError (undefined local variable or method ‘params’ for #<ProductIndexService:0x00007f0b100e59f8 @params=#<ActionController::Parameters {} permitted: false>> Did you mean? @params):

app/services/products/product_index_service.rb:13:in ‘products_scope’ app/services/products/product_index_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:12:in ‘index’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 16:48:18 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 452.9ms | Allocations: 285391)
Rendered products/new.html.erb within layouts/application (Duration: 454.2ms | Allocations: 285704)
Rendered layout layouts/application.html.erb (Duration: 662.9ms | Allocations: 341151)

Completed 200 OK in 688ms (Views: 663.8ms | ActiveRecord: 10.9ms | Allocations: 345617)

Started GET “/” for 127.0.0.1 at 2022-07-18 16:48:20 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.3ms | Allocations: 2907)

NameError (undefined local variable or method ‘params’ for #<ProductIndexService:0x00007f0b09048498 @params=#<ActionController::Parameters {} permitted: false>> Did you mean? @params):

app/services/products/product_index_service.rb:13:in ‘products_scope’ app/services/products/product_index_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:12:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:48:29 -0500

ActiveRecord::SchemaMigration Pluck (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 186ms (ActiveRecord: 25.3ms | Allocations: 20566)

NameError (uninitialized constant ProductsController::ProductIndexService

@products = ProductIndexService.call(filter)
            ^^^^^^^^^^^^^^^^^^^

Did you mean? ProductsHelper):

app/controllers/products_controller.rb:12:in ‘index’ Started GET “/” for 127.0.0.1 at 2022-07-18 16:56:35 -0500 Processing by ProductsController#index as HTML Completed 500 Internal Server Error in 32ms (Allocations: 3656)

NameError (uninitialized constant ProductsController::ProductIndexService

@products = ProductIndexService.call(filter)
            ^^^^^^^^^^^^^^^^^^^

Did you mean? ProductsHelper):

app/controllers/products_controller.rb:12:in ‘index’ Started GET “/1” for 127.0.0.1 at 2022-07-18 16:56:37 -0500

ActionController::RoutingError (No route matches [GET] “/1”):

Started GET “/products/1/” for 127.0.0.1 at 2022-07-18 16:56:42 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}

Completed 500 Internal Server Error in 20ms (Allocations: 2959)

NameError (uninitialized constant ProductsController::ProductShowService

@product = ProductShowService.call(params[:id])
           ^^^^^^^^^^^^^^^^^^

Did you mean? ProductsQuery):

app/controllers/products_controller.rb:18:in ‘show’ Started GET “/products/1/” for 127.0.0.1 at 2022-07-18 16:56:55 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}

Completed 500 Internal Server Error in 13ms (Allocations: 2064)

Zeitwerk::NameError (expected file /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/services/products/product_show_service.rb to define constant Products::ProductShowService, but didn’t

raise Zeitwerk::NameError.new("expected file #{file} to define constant #{cpath}, but didn't", cref.last)
^^^^^):

app/controllers/products_controller.rb:18:in ‘show’ Started GET “/products/1/” for 127.0.0.1 at 2022-07-18 16:57:04 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}

Completed 500 Internal Server Error in 13ms (Allocations: 2473)

NameError (undefined local variable or method ‘current_order’ for #<ProductShowService:0x00007f5a0a290750 @params=“1”>

@order_line = current_order.order_lines.new
              ^^^^^^^^^^^^^):

app/services/products/product_show_service.rb:15:in ‘new_order_line’ app/services/products/product_show_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:18:in ‘show’ Started GET “/products/1/” for 127.0.0.1 at 2022-07-18 16:57:51 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 33ms (ActiveRecord: 6.5ms | Allocations: 8875)

ArgumentError (wrong number of arguments (given 2, expected 1)):

app/services/products/product_show_service.rb:2:in ‘initialize’ app/services/application_service.rb:3:in ‘new’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:18:in ‘show’ Started GET “/products/1/” for 127.0.0.1 at 2022-07-18 16:58:04 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (6.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 39ms (ActiveRecord: 14.1ms | Allocations: 6134)

ArgumentError (wrong number of arguments (given 2, expected 1)):

app/services/products/product_show_service.rb:2:in ‘initialize’ app/services/application_service.rb:3:in ‘new’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:18:in ‘show’ Started GET “/products/1/” for 127.0.0.1 at 2022-07-18 16:58:47 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 52ms (ActiveRecord: 9.6ms | Allocations: 11569)

NameError (undefined local variable or method ‘current_order’ for #<ProductShowService:0x00007f5a0aabfae8 @params=“1”>

@order_line = current_order.order_lines.new
                                       ^^^^):

app/services/products/product_show_service.rb:15:in ‘new_order_line’ app/services/products/product_show_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:18:in ‘show’ Started GET “/products/1/” for 127.0.0.1 at 2022-07-18 16:59:01 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.2ms | Allocations: 2816)

NameError (undefined local variable or method ‘current_order’ for #<ProductShowService:0x00007f5a0bfb3238 @params=“1”>

@order_line = current_order.order_lines.new
                                       ^^^^):

app/services/products/product_show_service.rb:15:in ‘new_order_line’ app/services/products/product_show_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:18:in ‘show’ Started GET “/products/1/” for 127.0.0.1 at 2022-07-18 17:05:29 -0500

ActiveRecord::SchemaMigration Pluck (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 107ms (ActiveRecord: 11.3ms | Allocations: 20645)

NameError (uninitialized constant ProductsController::ProductShowService

@product = ProductShowService.call(params[:id])
           ^^^^^^^^^^^^^^^^^^

Did you mean? ProductsQuery):

app/controllers/products_controller.rb:18:in ‘show’ Started GET “/products” for 127.0.0.1 at 2022-07-18 17:49:52 -0500 Processing by ProductsController#index as HTML

Order Load (1.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 60ms (ActiveRecord: 11.9ms | Allocations: 13591)

Zeitwerk::NameError (expected file /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/services/products/product_index_service.rb to define constant Products::ProductIndexService, but didn’t

raise Zeitwerk::NameError.new("expected file #{file} to define constant #{cpath}, but didn't", cref.last)
^^^^^):

app/controllers/products_controller.rb:12:in ‘index’ Started GET “/products” for 127.0.0.1 at 2022-07-18 17:54:52 -0500

ActiveRecord::SchemaMigration Pluck (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 265ms (ActiveRecord: 25.5ms | Allocations: 18836)

Zeitwerk::NameError (expected file /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/services/products/product_index_service.rb to define constant Products::ProductIndexService, but didn’t

raise Zeitwerk::NameError.new("expected file #{file} to define constant #{cpath}, but didn't", cref.last)
^^^^^):

app/controllers/products_controller.rb:12:in ‘index’ Started GET “/products” for 127.0.0.1 at 2022-07-18 17:54:59 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 28ms (ActiveRecord: 0.2ms | Allocations: 4067)

NameError (uninitialized constant Products::ProductIndexService

@products = Products::ProductIndexService.call(query_params)
                    ^^^^^^^^^^^^^^^^^^^^^

Did you mean? Products::ProductShowService):

app/controllers/products_controller.rb:12:in ‘index’ Started GET “/products” for 127.0.0.1 at 2022-07-18 17:55:02 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.3ms | Allocations: 3755)

NameError (uninitialized constant Products::ProductIndexService

@products = Products::ProductIndexService.call(query_params)
                    ^^^^^^^^^^^^^^^^^^^^^

Did you mean? Products::ProductShowService):

app/controllers/products_controller.rb:12:in ‘index’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 17:55:09 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 595.0ms | Allocations: 285366)
Rendered products/new.html.erb within layouts/application (Duration: 597.3ms | Allocations: 285679)
Rendered layout layouts/application.html.erb (Duration: 747.2ms | Allocations: 341050)

Completed 200 OK in 815ms (Views: 748.3ms | ActiveRecord: 8.6ms | Allocations: 349181)

Started GET “/products” for 127.0.0.1 at 2022-07-18 17:55:17 -0500 Processing by ProductsController#index as HTML

Order Load (3.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 36ms (ActiveRecord: 3.3ms | Allocations: 3972)

NameError (uninitialized constant Products::ProductIndexService

@products = Products::ProductIndexService.call(query_params)
                    ^^^^^^^^^^^^^^^^^^^^^

Did you mean? Products::ProductShowService):

app/controllers/products_controller.rb:12:in ‘index’ Started GET “/products” for 127.0.0.1 at 2022-07-18 17:56:04 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 31ms (ActiveRecord: 0.5ms | Allocations: 3751)

NameError (uninitialized constant Products::ProductIndexService

@products = Products::ProductIndexService.call(query_params)
                    ^^^^^^^^^^^^^^^^^^^^^

Did you mean? Products::ProductShowService):

app/controllers/products_controller.rb:12:in ‘index’ Started GET “/products” for 127.0.0.1 at 2022-07-18 17:56:36 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 123ms (ActiveRecord: 11.7ms | Allocations: 14084)

NameError (undefined local variable or method ‘products_scope’ for #<ProductsController:0x000000000186f0>

@products = products_scope
            ^^^^^^^^^^^^^^

Did you mean? products_path):

app/controllers/products_controller.rb:11:in ‘index’ Started GET “/products” for 127.0.0.1 at 2022-07-18 17:56:48 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 76ms (ActiveRecord: 11.4ms | Allocations: 14890)

NoMethodError (undefined method ‘[]’ for nil:NilClass

ordered_by_name_products = ProductsQuery.new.order_by_letter(@params[:letter])
                                                                    ^^^^^^^^^):

app/controllers/products_controller.rb:69:in ‘products_scope’ app/controllers/products_controller.rb:11:in ‘index’ Started GET “/products” for 127.0.0.1 at 2022-07-18 17:57:16 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.9ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 48.1ms | Allocations: 13477)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 54.7ms | Allocations: 15526)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1716)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1494)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1493)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1493)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1494)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 272.7ms | Allocations: 64806)
Rendered layout layouts/application.html.erb (Duration: 322.5ms | Allocations: 87532)

Completed 200 OK in 408ms (Views: 295.2ms | ActiveRecord: 47.4ms | Allocations: 101680)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 17:57:21 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 10.3ms | Allocations: 2444)
Rendered products/new.html.erb within layouts/application (Duration: 17.2ms | Allocations: 2528)
Rendered layout layouts/application.html.erb (Duration: 46.7ms | Allocations: 10203)

Completed 200 OK in 58ms (Views: 56.9ms | ActiveRecord: 0.3ms | Allocations: 10542)

Started POST “/products” for 127.0.0.1 at 2022-07-18 17:57:46 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms | Allocations: 1609)

Zeitwerk::NameError (expected file /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/services/products/product_creator_service.rb to define constant Products::ProductCreatorService, but didn’t

raise Zeitwerk::NameError.new("expected file #{file} to define constant #{cpath}, but didn't", cref.last)
^^^^^):

app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products” for 127.0.0.1 at 2022-07-18 17:58:44 -0500

ActiveRecord::SchemaMigration Pluck (0.8ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 65ms (ActiveRecord: 10.0ms | Allocations: 18843)

Zeitwerk::NameError (expected file /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/services/products/product_index_service.rb to define constant Products::ProductIndexService, but didn’t

raise Zeitwerk::NameError.new("expected file #{file} to define constant #{cpath}, but didn't", cref.last)
^^^^^):

app/controllers/products_controller.rb:12:in ‘index’ Started GET “/products” for 127.0.0.1 at 2022-07-18 17:59:07 -0500 Processing by ProductsController#index as HTML

Order Load (0.9ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 67ms (ActiveRecord: 13.8ms | Allocations: 11606)

NameError (undefined local variable or method ‘current_order’ for #<ProductIndexService:0x00007fca4363cc60 @params=#<ActionController::Parameters {} permitted: false>>

@order_line = current_order.order_lines.new
              ^^^^^^^^^^^^^):

app/services/products/product_index_service.rb:15:in ‘new_order_line’ app/services/products/product_index_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:12:in ‘index’ Started GET “/products” for 127.0.0.1 at 2022-07-18 18:00:23 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 59ms (ActiveRecord: 8.9ms | Allocations: 11934)

NameError (undefined local variable or method ‘current_order’ for #<Products::ProductIndexService:0x00007fca40b803c8 @params=#<ActionController::Parameters {} permitted: false>>

@order_line = current_order.order_lines.new
              ^^^^^^^^^^^^^):

app/services/products/product_index_service.rb:15:in ‘new_order_line’ app/services/products/product_index_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:12:in ‘index’ Started GET “/products” for 127.0.0.1 at 2022-07-18 18:00:35 -0500

ActiveRecord::SchemaMigration Pluck (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#index as HTML

Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 222ms (ActiveRecord: 20.5ms | Allocations: 19708)

NameError (undefined local variable or method ‘current_order’ for #<Products::ProductIndexService:0x00007f34efb830f0 @params=#<ActionController::Parameters {} permitted: false>>

@order_line = current_order.order_lines.new
              ^^^^^^^^^^^^^):

app/services/products/product_index_service.rb:15:in ‘new_order_line’ app/services/products/product_index_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:12:in ‘index’ Started GET “/products” for 127.0.0.1 at 2022-07-18 18:00:56 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 50.5ms | Allocations: 14252)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 457.5ms | Allocations: 293166)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1711)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 630.8ms | Allocations: 344308)
Rendered layout layouts/application.html.erb (Duration: 733.3ms | Allocations: 399632)

Completed 200 OK in 828ms (Views: 712.0ms | ActiveRecord: 33.2ms | Allocations: 414837)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-18 18:01:07 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 15ms (ActiveRecord: 0.4ms | Allocations: 3505)

Started GET “/” for 127.0.0.1 at 2022-07-18 18:01:07 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.3ms | Allocations: 8632)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2650)
Tag Load (4.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2057)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1837)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 152.7ms | Allocations: 50725)
Rendered layout layouts/application.html.erb (Duration: 165.3ms | Allocations: 58500)

Completed 200 OK in 175ms (Views: 153.8ms | ActiveRecord: 12.5ms | Allocations: 60131)

Started GET “/” for 127.0.0.1 at 2022-07-18 18:01:23 -0500 Processing by ProductsController#index as HTML

Order Load (2.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.4ms | Allocations: 8591)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 1907)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1819)
Tag Load (9.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 19.0ms | Allocations: 1819)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 58.4ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 1818)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 294.2ms | Allocations: 49670)
Rendered layout layouts/application.html.erb (Duration: 317.9ms | Allocations: 57356)

Completed 200 OK in 329ms (Views: 299.5ms | ActiveRecord: 23.5ms | Allocations: 58853)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 18:02:01 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 38ms (ActiveRecord: 0.4ms | Allocations: 7848)

Zeitwerk::NameError (expected file /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/services/products/product_show_service.rb to define constant Products::ProductShowService, but didn’t

raise Zeitwerk::NameError.new("expected file #{file} to define constant #{cpath}, but didn't", cref.last)
^^^^^):

app/controllers/products_controller.rb:18:in ‘show’ Started GET “/” for 127.0.0.1 at 2022-07-18 18:02:02 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.9ms | Allocations: 8623)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 2015)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 1819)
Tag Load (4.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 28.8ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 1837)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 1819)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.1ms | Allocations: 1819)
Tag Load (6.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.2ms | Allocations: 1819)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 1819)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.7ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 31.5ms | Allocations: 1819)
Tag Load (3.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1818)
Tag Load (3.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 1823)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 290.6ms | Allocations: 49814)
Rendered layout layouts/application.html.erb (Duration: 313.9ms | Allocations: 57601)

Completed 200 OK in 330ms (Views: 280.3ms | ActiveRecord: 34.6ms | Allocations: 59198)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-18 18:09:39 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 2.2ms | Allocations: 728)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 18.7ms | Allocations: 3511)
Rendered layout layouts/application.html.erb (Duration: 61.7ms | Allocations: 26296)

Completed 200 OK in 94ms (Views: 67.1ms | ActiveRecord: 7.0ms | Allocations: 33806)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-18 18:09:45 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"alvaro@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 260ms (ActiveRecord: 0.8ms | Allocations: 4384)

Started GET “/” for 127.0.0.1 at 2022-07-18 18:09:45 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 18.8ms | Allocations: 12421)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (3.0ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 41.3ms | Allocations: 8721)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1711)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 1494)
Tag Load (9.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.9ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 1493)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 1493)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 21.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 291.2ms | Allocations: 55923)
Rendered layout layouts/application.html.erb (Duration: 361.4ms | Allocations: 63814)

Completed 200 OK in 404ms (Views: 340.4ms | ActiveRecord: 26.4ms | Allocations: 76957)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:09:49 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 9.9ms | Allocations: 2895)
Rendered products/new.html.erb within layouts/application (Duration: 16.1ms | Allocations: 3182)
Rendered layout layouts/application.html.erb (Duration: 32.6ms | Allocations: 10866)

Completed 200 OK in 41ms (Views: 33.9ms | ActiveRecord: 0.3ms | Allocations: 11280)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:09:52 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms | Allocations: 1210)

Zeitwerk::NameError (expected file /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/services/products/product_creator_service.rb to define constant Products::ProductCreatorService, but didn’t

raise Zeitwerk::NameError.new("expected file #{file} to define constant #{cpath}, but didn't", cref.last)
^^^^^):

app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:10:06 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 33.3ms | Allocations: 6065)
Rendered products/new.html.erb within layouts/application (Duration: 34.2ms | Allocations: 6160)
Rendered layout layouts/application.html.erb (Duration: 79.6ms | Allocations: 28905)

Completed 200 OK in 114ms (Views: 77.1ms | ActiveRecord: 18.7ms | Allocations: 35891)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:10:11 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 37ms (ActiveRecord: 0.0ms | Allocations: 9005)

NoMethodError (undefined method ‘validations’ for ActiveRecord:Module):

app/forms/product_form.rb:5:in ‘<class:ProductForm>’ app/forms/product_form.rb:1:in ‘<main>’ app/services/products/product_creator_service.rb:15:in ‘validations’ app/services/products/product_creator_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:10:26 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 34.6ms | Allocations: 6076)
Rendered products/new.html.erb within layouts/application (Duration: 35.2ms | Allocations: 6171)
Rendered layout layouts/application.html.erb (Duration: 83.8ms | Allocations: 28917)

Completed 200 OK in 115ms (Views: 81.4ms | ActiveRecord: 11.3ms | Allocations: 35872)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:10:27 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.0ms | Allocations: 3258)

NameError (undefined local variable or method ‘params’ for #<Products::ProductCreatorService:0x00007f34bef24050 @params=#<ActionController::Parameters {“name”=>“”, “description”=>“”, “price”=>“10”, “stock”=>“100”} permitted: true>>

@form = ProductForm.new(params)
                        ^^^^^^

Did you mean? @params):

app/services/products/product_creator_service.rb:15:in ‘validations’ app/services/products/product_creator_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:10:46 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 31.8ms | Allocations: 6079)
Rendered products/new.html.erb within layouts/application (Duration: 35.7ms | Allocations: 6174)
Rendered layout layouts/application.html.erb (Duration: 100.7ms | Allocations: 28958)

Completed 200 OK in 129ms (Views: 98.3ms | ActiveRecord: 11.5ms | Allocations: 35917)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:10:48 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 40ms (ActiveRecord: 0.0ms | Allocations: 3647)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f34ec8debe0 @name=“”, @description=“”, @price=“10”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/forms/product_form.rb:13:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:19:44 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 19.5ms | Allocations: 5643)
Rendered products/new.html.erb within layouts/application (Duration: 23.3ms | Allocations: 5738)
Rendered layout layouts/application.html.erb (Duration: 68.2ms | Allocations: 28522)

Completed 200 OK in 99ms (Views: 69.8ms | ActiveRecord: 6.5ms | Allocations: 38118)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:19:51 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.0ms | Allocations: 3601)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f34bf14c670 @name=“NEW PRODUCT”, @description=“”, @price=“10”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/forms/product_form.rb:13:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:20:04 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 44.6ms | Allocations: 6082)
Rendered products/new.html.erb within layouts/application (Duration: 48.9ms | Allocations: 6177)
Rendered layout layouts/application.html.erb (Duration: 102.3ms | Allocations: 28961)

Completed 200 OK in 167ms (Views: 106.5ms | ActiveRecord: 14.1ms | Allocations: 35931)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:20:05 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.0ms | Allocations: 3442)

NoMethodError (undefined method ‘authorize’ for #<ProductForm:0x00007f34beded1f0 @name=“NEW PRODUCT”, @description=“”, @price=“10”, @stock=“100”>

authorize Product.new(attributes)
^^^^^^^^^):

app/forms/product_form.rb:13:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products” for 127.0.0.1 at 2022-07-18 18:20:32 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 102.5ms | Allocations: 12672)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 46.8ms | Allocations: 8996)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 1711)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 1494)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1494)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 1512)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 1494)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 1494)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 1507)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 1494)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 1493)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1493)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1493)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 387.7ms | Allocations: 54865)
Rendered layout layouts/application.html.erb (Duration: 416.9ms | Allocations: 62700)

Completed 200 OK in 601ms (Views: 379.3ms | ActiveRecord: 48.4ms | Allocations: 78443)

Started GET “/?term=&tag=2&commit=Sort” for 127.0.0.1 at 2022-07-18 18:20:37 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"", "tag"=>"2", "commit"=>"Sort"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 17.1ms | Allocations: 8608)
Product Exists? (29.5ms)  SELECT 1 AS one FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1  [["id", 2]]
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2496)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1493)
Rendered products/index.html.erb within layouts/application (Duration: 119.2ms | Allocations: 19865)
Rendered layout layouts/application.html.erb (Duration: 132.4ms | Allocations: 27640)

Completed 200 OK in 141ms (Views: 101.2ms | ActiveRecord: 32.6ms | Allocations: 29192)

Started GET “/?term=&tag=5&likes_count=desc&commit=Sort” for 127.0.0.1 at 2022-07-18 18:20:41 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"", "tag"=>"5", "likes_count"=>"desc", "commit"=>"Sort"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.8ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.6ms | Allocations: 8608)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 ORDER BY likes_count desc  [["id", 5]]
↳ app/views/products/index.html.erb:8
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 2333)
Rendered products/index.html.erb within layouts/application (Duration: 38.6ms | Allocations: 12650)
Rendered layout layouts/application.html.erb (Duration: 55.2ms | Allocations: 20316)

Completed 200 OK in 65ms (Views: 52.6ms | ActiveRecord: 3.4ms | Allocations: 21825)

Started GET “/?term=&tag=4&likes_count=desc&commit=Sort” for 127.0.0.1 at 2022-07-18 18:20:45 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"", "tag"=>"4", "likes_count"=>"desc", "commit"=>"Sort"}
Order Load (1.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (3.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 16.4ms | Allocations: 8569)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (2.0ms)  SELECT "products".* FROM "products" INNER JOIN "products_tags" ON "products_tags"."product_id" = "products"."id" INNER JOIN "tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "tags"."id" = $1 ORDER BY likes_count desc  [["id", 4]]
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
User Load (3.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 2334)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 66.1ms | Allocations: 17312)
Rendered layout layouts/application.html.erb (Duration: 86.6ms | Allocations: 24977)

Completed 200 OK in 98ms (Views: 75.0ms | ActiveRecord: 13.2ms | Allocations: 26400)

Started GET “/?term=&tag=&likes_count=desc&commit=Sort” for 127.0.0.1 at 2022-07-18 18:20:48 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"", "tag"=>"", "likes_count"=>"desc", "commit"=>"Sort"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 25.1ms | Allocations: 8568)
Product Exists? (1.8ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products" ORDER BY likes_count desc
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 2332)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 139.9ms | Allocations: 43592)
Rendered layout layouts/application.html.erb (Duration: 154.4ms | Allocations: 51314)

Completed 200 OK in 163ms (Views: 145.3ms | ActiveRecord: 10.1ms | Allocations: 52687)

Started GET “/?term=z&tag=&letter=desc&commit=Sort” for 127.0.0.1 at 2022-07-18 18:20:57 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"z", "tag"=>"", "letter"=>"desc", "commit"=>"Sort"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 15.6ms | Allocations: 8567)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE (products.name LIKE '%z%') LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE (products.name LIKE '%z%') ORDER BY name desc
↳ app/views/products/index.html.erb:8
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2333)
Rendered products/index.html.erb within layouts/application (Duration: 39.2ms | Allocations: 12271)
Rendered layout layouts/application.html.erb (Duration: 54.7ms | Allocations: 19991)

Completed 200 OK in 67ms (Views: 50.8ms | ActiveRecord: 7.7ms | Allocations: 21395)

Started GET “/?term=a&tag=&letter=asc&commit=Sort” for 127.0.0.1 at 2022-07-18 18:21:02 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"a", "tag"=>"", "letter"=>"asc", "commit"=>"Sort"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.2ms | Allocations: 8567)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE (products.name LIKE '%a%') LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE (products.name LIKE '%a%') ORDER BY name asc
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2333)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 67.5ms | Allocations: 23235)
Rendered layout layouts/application.html.erb (Duration: 83.8ms | Allocations: 30900)

Completed 200 OK in 90ms (Views: 80.7ms | ActiveRecord: 4.6ms | Allocations: 32280)

Started GET “/?term=a&tag=&letter=desc&commit=Sort” for 127.0.0.1 at 2022-07-18 18:21:08 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"a", "tag"=>"", "letter"=>"desc", "commit"=>"Sort"}
Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 15.7ms | Allocations: 8567)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" WHERE (products.name LIKE '%a%') LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE (products.name LIKE '%a%') ORDER BY name desc
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2333)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1493)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 60.8ms | Allocations: 23235)
Rendered layout layouts/application.html.erb (Duration: 73.6ms | Allocations: 30900)

Completed 200 OK in 79ms (Views: 68.8ms | ActiveRecord: 6.0ms | Allocations: 32284)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 18:21:19 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.9ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.9ms | Allocations: 7375)

TypeError (Products is not a class /home/alvaro/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/callbacks.rb:48: previous definition of Products was here):

app/services/products/product_show_service.rb:1:in ‘<main>’ app/controllers/products_controller.rb:18:in ‘show’ Started GET “/products/4” for 127.0.0.1 at 2022-07-18 18:21:46 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 85ms (ActiveRecord: 9.2ms | Allocations: 15148)

NameError (undefined local variable or method ‘params’ for #<Products::ProductShowService:0x00007f34be6526c0 @params=“4”>

product = Product.find(params[:id])
                       ^^^^^^

Did you mean? @params):

app/services/products/product_show_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:18:in ‘show’ Started GET “/products/4” for 127.0.0.1 at 2022-07-18 18:22:01 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 51ms (ActiveRecord: 8.3ms | Allocations: 13885)

TypeError (no implicit conversion of Symbol into Integer):

app/services/products/product_show_service.rb:8:in ‘[]’ app/services/products/product_show_service.rb:8:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:18:in ‘show’ Started GET “/products/4” for 127.0.0.1 at 2022-07-18 18:22:15 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_show_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 57.2ms | Allocations: 15496)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 11.5ms | Allocations: 2948)
Rendered products/show.html.erb within layouts/application (Duration: 87.2ms | Allocations: 20173)
Rendered layout layouts/application.html.erb (Duration: 129.4ms | Allocations: 42967)

Completed 200 OK in 196ms (Views: 120.3ms | ActiveRecord: 26.6ms | Allocations: 60387)

Started GET “/?term=a&tag=&letter=desc&commit=Sort” for 127.0.0.1 at 2022-07-18 18:22:17 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"a", "tag"=>"", "letter"=>"desc", "commit"=>"Sort"}
Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 21.5ms | Allocations: 9663)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE (products.name LIKE '%a%') LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products" WHERE (products.name LIKE '%a%') ORDER BY name desc
↳ app/views/products/index.html.erb:8
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2480)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1493)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 87.1ms | Allocations: 24668)
Rendered layout layouts/application.html.erb (Duration: 103.4ms | Allocations: 32442)

Completed 200 OK in 116ms (Views: 96.5ms | ActiveRecord: 7.8ms | Allocations: 34199)

Started GET “/products/19” for 127.0.0.1 at 2022-07-18 18:22:18 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"19"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 19], ["LIMIT", 1]]
↳ app/services/products/product_show_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
User Load (5.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 2298)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 19], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 3.0ms | Allocations: 826)
Rendered products/show.html.erb within layouts/application (Duration: 17.7ms | Allocations: 3342)
Rendered layout layouts/application.html.erb (Duration: 64.1ms | Allocations: 11047)

Completed 200 OK in 75ms (Views: 57.2ms | ActiveRecord: 8.0ms | Allocations: 12933)

Started GET “/?term=a&tag=&letter=desc&commit=Sort” for 127.0.0.1 at 2022-07-18 18:22:19 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"a", "tag"=>"", "letter"=>"desc", "commit"=>"Sort"}
Order Load (1.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 32.7ms | Allocations: 12698)
Product Exists? (0.9ms)  SELECT 1 AS one FROM "products" WHERE (products.name LIKE '%a%') LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE (products.name LIKE '%a%') ORDER BY name desc
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 40.5ms | Allocations: 12336)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 1711)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1495)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1493)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 159.2ms | Allocations: 39724)
Rendered layout layouts/application.html.erb (Duration: 195.4ms | Allocations: 62433)

Completed 200 OK in 300ms (Views: 175.6ms | ActiveRecord: 40.4ms | Allocations: 76913)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:22:31 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 14.4ms | Allocations: 2439)
Rendered products/new.html.erb within layouts/application (Duration: 18.3ms | Allocations: 2523)
Rendered layout layouts/application.html.erb (Duration: 46.6ms | Allocations: 10198)

Completed 200 OK in 49ms (Views: 48.1ms | ActiveRecord: 0.2ms | Allocations: 10536)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:22:37 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.0ms | Allocations: 8919)

NoMethodError (undefined method ‘authorize’ for #<ProductForm:0x00007f34becabeb8 @name=“NEW PRODUCT”, @description=“”, @price=“10”, @stock=“100”>

authorize Product.new(attributes)
^^^^^^^^^):

app/forms/product_form.rb:13:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:23:26 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (3.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 17.3ms | Allocations: 2505)
Rendered products/new.html.erb within layouts/application (Duration: 19.4ms | Allocations: 2587)
Rendered layout layouts/application.html.erb (Duration: 41.8ms | Allocations: 10368)

Completed 200 OK in 46ms (Views: 41.5ms | ActiveRecord: 3.5ms | Allocations: 10690)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:23:34 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms | Allocations: 2115)

NoMethodError (undefined method ‘authorize’ for #<ProductForm:0x00007f34be624310 @name=“NEW PRODUCT”, @description=“”, @price=“10”, @stock=“100”>

authorize Product.new(attributes)
^^^^^^^^^):

app/forms/product_form.rb:13:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:23:53 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 27.1ms | Allocations: 6068)
Rendered products/new.html.erb within layouts/application (Duration: 28.6ms | Allocations: 6163)
Rendered layout layouts/application.html.erb (Duration: 71.1ms | Allocations: 28946)

Completed 200 OK in 106ms (Views: 65.9ms | ActiveRecord: 13.5ms | Allocations: 35885)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:23:54 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 66ms (ActiveRecord: 0.0ms | Allocations: 5699)

NoMethodError (undefined method ‘save’ for Product:Class):

app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products” for 127.0.0.1 at 2022-07-18 18:26:06 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 48.5ms | Allocations: 12746)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 46.0ms | Allocations: 12346)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1711)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1494)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 248.3ms | Allocations: 60141)
Rendered layout layouts/application.html.erb (Duration: 304.1ms | Allocations: 82906)

Completed 200 OK in 371ms (Views: 273.2ms | ActiveRecord: 43.1ms | Allocations: 97187)

Started GET “/products/1/” for 127.0.0.1 at 2022-07-18 18:27:15 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (3.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/services/products/product_show_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2462)
Comment Load (1.1ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 17.1ms | Allocations: 2529)
Rendered products/show.html.erb within layouts/application (Duration: 44.8ms | Allocations: 6314)
Rendered layout layouts/application.html.erb (Duration: 79.6ms | Allocations: 14115)

Completed 200 OK in 136ms (Views: 78.8ms | ActiveRecord: 8.4ms | Allocations: 22724)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:28:36 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 30.9ms | Allocations: 6089)
Rendered products/new.html.erb within layouts/application (Duration: 32.3ms | Allocations: 6184)
Rendered layout layouts/application.html.erb (Duration: 99.0ms | Allocations: 28967)

Completed 200 OK in 132ms (Views: 98.1ms | ActiveRecord: 10.0ms | Allocations: 35830)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:28:42 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.0ms | Allocations: 5690)

NoMethodError (undefined method ‘save’ for Product:Class):

app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:29:47 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 33.9ms | Allocations: 6070)
Rendered products/new.html.erb within layouts/application (Duration: 40.6ms | Allocations: 6165)
Rendered layout layouts/application.html.erb (Duration: 92.2ms | Allocations: 28949)

Completed 200 OK in 149ms (Views: 91.8ms | ActiveRecord: 9.4ms | Allocations: 35865)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:29:53 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms | Allocations: 2184)

ArgumentError (When assigning attributes, you must pass a hash as an argument, Product passed.):

app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:30:40 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 56.6ms | Allocations: 6076)
Rendered products/new.html.erb within layouts/application (Duration: 56.9ms | Allocations: 6171)
Rendered layout layouts/application.html.erb (Duration: 111.3ms | Allocations: 28955)

Completed 200 OK in 189ms (Views: 103.9ms | ActiveRecord: 20.3ms | Allocations: 35802)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:30:42 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.4ms)  BEGIN
↳ app/services/products/product_creator_service.rb:9:in `call'
Product Create (1.1ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "NEW PRODUCT"], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-18 23:30:42.470232"], ["updated_at", "2022-07-18 23:30:42.470232"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:9:in `call'
TRANSACTION (1.3ms)  COMMIT
↳ app/services/products/product_creator_service.rb:9:in `call'

Redirected to localhost:3000/products Completed 302 Found in 27ms (ActiveRecord: 2.7ms | Allocations: 5319)

Started GET “/products” for 127.0.0.1 at 2022-07-18 18:30:42 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (5.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 26.9ms | Allocations: 12714)
Product Exists? (1.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (4.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 31.2ms | Allocations: 8985)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1712)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1512)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1493)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1464)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 30]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 231.7ms | Allocations: 56404)
Rendered layout layouts/application.html.erb (Duration: 249.0ms | Allocations: 64239)

Completed 200 OK in 299ms (Views: 208.9ms | ActiveRecord: 49.6ms | Allocations: 73866)

Started DELETE “/products/30” for 127.0.0.1 at 2022-07-18 18:30:45 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"30"}

Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms | Allocations: 1270)

Zeitwerk::NameError (expected file /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/services/products/product_destroy_service.rb to define constant Products::ProductDestroyService, but didn’t

raise Zeitwerk::NameError.new("expected file #{file} to define constant #{cpath}, but didn't", cref.last)
^^^^^):

app/controllers/products_controller.rb:53:in ‘destroy’ Started GET “/products” for 127.0.0.1 at 2022-07-18 18:31:03 -0500 Processing by ProductsController#index as HTML

Order Load (2.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 36.9ms | Allocations: 12735)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (2.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 50.8ms | Allocations: 12341)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1711)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 1494)
Tag Load (3.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1494)
Tag Load (5.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1494)
Tag Load (3.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1512)
Tag Load (3.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1494)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 1494)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1495)
Tag Load (3.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1494)
Tag Load (3.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1494)
Tag Load (7.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1493)
Tag Load (3.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1493)
Tag Load (6.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.1ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (6.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1494)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1464)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 30]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 320.6ms | Allocations: 61669)
Rendered layout layouts/application.html.erb (Duration: 363.5ms | Allocations: 84441)

Completed 200 OK in 455ms (Views: 272.6ms | ActiveRecord: 106.6ms | Allocations: 98812)

Started DELETE “/products/30” for 127.0.0.1 at 2022-07-18 18:31:06 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"30"}

Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms | Allocations: 2101)

NameError (undefined local variable or method ‘params’ for #<Products::ProductDestroyService:0x00007f34bec08038 @params=“30”>

product = authorize Product.find(params[:id])
                                 ^^^^^^

Did you mean? @params):

app/services/products/product_destroy_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:53:in ‘destroy’ Started GET “/products” for 127.0.0.1 at 2022-07-18 18:32:04 -0500 Processing by ProductsController#index as HTML

Order Load (1.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 28.8ms | Allocations: 12746)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 63.6ms | Allocations: 12342)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.6ms | Allocations: 1711)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1495)
Tag Load (3.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 1495)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.0ms | Allocations: 1494)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1493)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 30]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 339.3ms | Allocations: 61677)
Rendered layout layouts/application.html.erb (Duration: 386.4ms | Allocations: 84441)

Completed 200 OK in 461ms (Views: 356.3ms | ActiveRecord: 48.1ms | Allocations: 98855)

Started DELETE “/products/30” for 127.0.0.1 at 2022-07-18 18:32:07 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"30"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 30], ["LIMIT", 1]]
↳ app/services/products/product_destroy_service.rb:7:in `call'

Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.4ms | Allocations: 3114)

NoMethodError (undefined method ‘authorize’ for #<Products::ProductDestroyService:0x00007f34beaac310 @params=“30”>

product = authorize Product.find(@params)
          ^^^^^^^^^):

app/services/products/product_destroy_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:53:in ‘destroy’ Started GET “/products” for 127.0.0.1 at 2022-07-18 18:32:10 -0500 Processing by ProductsController#index as HTML

Order Load (1.9ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 24.5ms | Allocations: 8621)
Product Exists? (1.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.9ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (3.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (2.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 19.2ms | Allocations: 2429)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 1494)
Tag Load (9.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 1494)
Tag Load (5.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 1494)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 1494)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1512)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1494)
Tag Load (13.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.5ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1494)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 1494)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1493)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1493)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1493)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 1494)
Tag Load (6.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1464)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 30]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 296.8ms | Allocations: 45285)
Rendered layout layouts/application.html.erb (Duration: 323.1ms | Allocations: 53109)

Completed 200 OK in 334ms (Views: 259.5ms | ActiveRecord: 66.5ms | Allocations: 54606)

Started DELETE “/products/30” for 127.0.0.1 at 2022-07-18 18:34:57 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"30"}
Product Load (2.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 30], ["LIMIT", 1]]
↳ app/services/products/product_destroy_service.rb:7:in `call'

Completed 500 Internal Server Error in 15ms (ActiveRecord: 2.1ms | Allocations: 2227)

NoMethodError (undefined method ‘authorize’ for #<Products::ProductDestroyService:0x00007f34becd3620 @params=“30”>

product = authorize Product.find(@params)
          ^^^^^^^^^):

app/services/products/product_destroy_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:53:in ‘destroy’ Started GET “/products” for 127.0.0.1 at 2022-07-18 18:35:45 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 28.4ms | Allocations: 12752)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 41.4ms | Allocations: 12342)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1711)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1495)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (3.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 1493)
Tag Load (4.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.5ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 30]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 276.2ms | Allocations: 61682)
Rendered layout layouts/application.html.erb (Duration: 344.8ms | Allocations: 84446)

Completed 200 OK in 439ms (Views: 323.1ms | ActiveRecord: 41.3ms | Allocations: 98867)

Started DELETE “/products/30” for 127.0.0.1 at 2022-07-18 18:35:48 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"30"}
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 30], ["LIMIT", 1]]
↳ app/services/products/product_destroy_service.rb:7:in `call'
TRANSACTION (0.4ms)  BEGIN
↳ app/services/products/product_destroy_service.rb:9:in `call'
OrderLine Load (0.6ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."product_id" = $1  [["product_id", 30]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Like Load (0.7ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1  [["product_id", 30]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 30], ["commentable_type", "Product"]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Product::HABTM_Tags Delete All (0.2ms)  DELETE FROM "products_tags" WHERE "products_tags"."product_id" = $1  [["product_id", 30]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Product Destroy (1.5ms)  DELETE FROM "products" WHERE "products"."id" = $1  [["id", 30]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
TRANSACTION (7.5ms)  COMMIT
↳ app/services/products/product_destroy_service.rb:9:in `call'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:53:in `destroy'

Redirected to localhost:3000/products Completed 302 Found in 54ms (ActiveRecord: 14.3ms | Allocations: 12531)

Started GET “/products” for 127.0.0.1 at 2022-07-18 18:35:48 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.1ms | Allocations: 8627)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2391)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1498)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 162.4ms | Allocations: 43729)
Rendered layout layouts/application.html.erb (Duration: 190.5ms | Allocations: 51497)

Completed 200 OK in 203ms (Views: 187.2ms | ActiveRecord: 9.2ms | Allocations: 52971)

Started DELETE “/products/21” for 127.0.0.1 at 2022-07-18 18:36:00 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"21"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 21], ["LIMIT", 1]]
↳ app/services/products/product_destroy_service.rb:7:in `call'
TRANSACTION (0.2ms)  BEGIN
↳ app/services/products/product_destroy_service.rb:9:in `call'
OrderLine Load (2.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."product_id" = $1  [["product_id", 21]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Like Load (4.0ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1  [["product_id", 21]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Comment Load (1.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 21], ["commentable_type", "Product"]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Product::HABTM_Tags Delete All (1.5ms)  DELETE FROM "products_tags" WHERE "products_tags"."product_id" = $1  [["product_id", 21]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Product Destroy (1.2ms)  DELETE FROM "products" WHERE "products"."id" = $1  [["id", 21]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
TRANSACTION (1.4ms)  COMMIT
↳ app/services/products/product_destroy_service.rb:9:in `call'
User Load (1.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:53:in `destroy'

Redirected to localhost:3000/products Completed 302 Found in 48ms (ActiveRecord: 13.7ms | Allocations: 6307)

Started GET “/products” for 127.0.0.1 at 2022-07-18 18:36:01 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.6ms | Allocations: 8568)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2333)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1494)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1494)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 1494)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1493)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 207.3ms | Allocations: 42051)
Rendered layout layouts/application.html.erb (Duration: 236.9ms | Allocations: 49772)

Completed 200 OK in 246ms (Views: 219.9ms | ActiveRecord: 18.4ms | Allocations: 51121)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:36:04 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 19.8ms | Allocations: 2288)
Rendered products/new.html.erb within layouts/application (Duration: 29.5ms | Allocations: 2372)
Rendered layout layouts/application.html.erb (Duration: 50.9ms | Allocations: 10045)

Completed 200 OK in 54ms (Views: 51.9ms | ActiveRecord: 0.3ms | Allocations: 10345)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:36:09 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT5", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (1.4ms)  BEGIN
↳ app/services/products/product_creator_service.rb:9:in `call'
Product Create (0.9ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "NEW PRODUCT5"], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-18 23:36:09.397502"], ["updated_at", "2022-07-18 23:36:09.397502"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:9:in `call'
TRANSACTION (45.4ms)  COMMIT
↳ app/services/products/product_creator_service.rb:9:in `call'

Redirected to localhost:3000/products Completed 302 Found in 73ms (ActiveRecord: 47.7ms | Allocations: 3796)

Started GET “/products” for 127.0.0.1 at 2022-07-18 18:36:09 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.2ms | Allocations: 8635)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2419)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1494)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 31]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 193.6ms | Allocations: 43755)
Rendered layout layouts/application.html.erb (Duration: 212.7ms | Allocations: 51581)

Completed 200 OK in 222ms (Views: 200.8ms | ActiveRecord: 13.5ms | Allocations: 53135)

Started DELETE “/products/31” for 127.0.0.1 at 2022-07-18 18:36:12 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"31"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 31], ["LIMIT", 1]]
↳ app/services/products/product_destroy_service.rb:7:in `call'
TRANSACTION (1.1ms)  BEGIN
↳ app/services/products/product_destroy_service.rb:9:in `call'
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."product_id" = $1  [["product_id", 31]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Like Load (1.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1  [["product_id", 31]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Comment Load (1.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 31], ["commentable_type", "Product"]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Product::HABTM_Tags Delete All (0.6ms)  DELETE FROM "products_tags" WHERE "products_tags"."product_id" = $1  [["product_id", 31]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Product Destroy (1.4ms)  DELETE FROM "products" WHERE "products"."id" = $1  [["id", 31]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
TRANSACTION (17.7ms)  COMMIT
↳ app/services/products/product_destroy_service.rb:9:in `call'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:53:in `destroy'

Redirected to localhost:3000/products Completed 302 Found in 69ms (ActiveRecord: 24.6ms | Allocations: 6359)

Started GET “/products” for 127.0.0.1 at 2022-07-18 18:36:12 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.8ms | Allocations: 8567)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 2333)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1512)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 1494)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1493)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 34.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 32.1ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 239.7ms | Allocations: 42050)
Rendered layout layouts/application.html.erb (Duration: 332.6ms | Allocations: 49715)

Completed 200 OK in 341ms (Views: 325.5ms | ActiveRecord: 9.6ms | Allocations: 51058)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-18 18:36:35 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 15ms (ActiveRecord: 0.3ms | Allocations: 2611)

Started GET “/” for 127.0.0.1 at 2022-07-18 18:36:35 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 20.3ms | Allocations: 8627)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (3.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2017)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1818)
Tag Load (4.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1818)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1818)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 189.0ms | Allocations: 47959)
Rendered layout layouts/application.html.erb (Duration: 208.4ms | Allocations: 55737)

Completed 200 OK in 217ms (Views: 188.1ms | ActiveRecord: 21.5ms | Allocations: 57182)

Started GET “/” for 127.0.0.1 at 2022-07-18 18:36:55 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 19.4ms | Allocations: 9171)
Product Exists? (3.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (3.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 2934)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2053)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.4ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2053)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2053)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.2ms | Allocations: 2053)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2053)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2071)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2053)
Tag Load (4.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2053)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 19.2ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 2052)
Tag Load (3.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2052)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2052)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2053)
Rendered products/index.html.erb within layouts/application (Duration: 262.2ms | Allocations: 54368)
Rendered layout layouts/application.html.erb (Duration: 283.7ms | Allocations: 62827)

Completed 200 OK in 295ms (Views: 254.5ms | ActiveRecord: 31.8ms | Allocations: 64764)

Started DELETE “/products/5” for 127.0.0.1 at 2022-07-18 18:36:59 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"5"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/services/products/product_destroy_service.rb:7:in `call'
TRANSACTION (0.2ms)  BEGIN
↳ app/services/products/product_destroy_service.rb:9:in `call'
OrderLine Load (1.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."product_id" = $1  [["product_id", 5]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
OrderLine Destroy (2.1ms)  DELETE FROM "order_lines" WHERE "order_lines"."id" = $1  [["id", 3]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/models/order_line.rb:28:in `update_total'
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
Order Update (1.4ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "35.0"], ["updated_at", "2022-07-18 23:36:59.451349"], ["id", 1]]
↳ app/models/order_line.rb:28:in `update_total'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1  [["product_id", 5]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 5], ["commentable_type", "Product"]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Product::HABTM_Tags Delete All (0.3ms)  DELETE FROM "products_tags" WHERE "products_tags"."product_id" = $1  [["product_id", 5]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Product Destroy (0.9ms)  DELETE FROM "products" WHERE "products"."id" = $1  [["id", 5]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
TRANSACTION (31.6ms)  COMMIT
↳ app/services/products/product_destroy_service.rb:9:in `call'

Redirected to localhost:3000/ Completed 302 Found in 88ms (ActiveRecord: 39.2ms | Allocations: 11755)

Started GET “/” for 127.0.0.1 at 2022-07-18 18:36:59 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (5.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.6ms | Allocations: 8566)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.9ms | Allocations: 2129)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 2071)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 2052)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2052)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 2052)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2053)
Rendered products/index.html.erb within layouts/application (Duration: 176.3ms | Allocations: 50362)
Rendered layout layouts/application.html.erb (Duration: 197.7ms | Allocations: 58029)

Completed 200 OK in 211ms (Views: 189.5ms | ActiveRecord: 14.5ms | Allocations: 59462)

Started DELETE “/products/1” for 127.0.0.1 at 2022-07-18 18:37:15 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"1"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/services/products/product_destroy_service.rb:7:in `call'
TRANSACTION (1.4ms)  BEGIN
↳ app/services/products/product_destroy_service.rb:9:in `call'
OrderLine Load (1.9ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."product_id" = $1  [["product_id", 1]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
OrderLine Destroy (2.5ms)  DELETE FROM "order_lines" WHERE "order_lines"."id" = $1  [["id", 2]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Order Load (2.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/models/order_line.rb:28:in `update_total'
OrderLine Load (1.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/models/order.rb:31:in `set_total'
Order Update (2.0ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "0.0"], ["updated_at", "2022-07-18 23:37:15.774796"], ["id", 1]]
↳ app/models/order_line.rb:28:in `update_total'
Like Load (1.9ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1  [["product_id", 1]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Comment Load (1.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 1], ["commentable_type", "Product"]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Product::HABTM_Tags Delete All (0.9ms)  DELETE FROM "products_tags" WHERE "products_tags"."product_id" = $1  [["product_id", 1]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Product Destroy (1.0ms)  DELETE FROM "products" WHERE "products"."id" = $1  [["id", 1]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
TRANSACTION (19.6ms)  COMMIT
↳ app/services/products/product_destroy_service.rb:9:in `call'

Redirected to localhost:3000/ Completed 302 Found in 99ms (ActiveRecord: 37.5ms | Allocations: 8907)

Started GET “/” for 127.0.0.1 at 2022-07-18 18:37:15 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.5ms | Allocations: 8565)
Product Exists? (1.0ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2129)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 2071)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 2053)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 2052)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 2052)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2052)
Rendered products/index.html.erb within layouts/application (Duration: 147.0ms | Allocations: 48191)
Rendered layout layouts/application.html.erb (Duration: 168.1ms | Allocations: 55866)

Completed 200 OK in 177ms (Views: 161.7ms | ActiveRecord: 7.6ms | Allocations: 57227)

Started GET “/” for 127.0.0.1 at 2022-07-18 18:37:23 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 26.3ms | Allocations: 8567)
Product Exists? (5.1ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 25.2ms | Allocations: 2129)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 19.1ms | Allocations: 2053)
Tag Load (3.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 22.7ms | Allocations: 2053)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 35.5ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2053)
Tag Load (3.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 24.1ms | Allocations: 2053)
Tag Load (3.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2071)
Tag Load (4.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.8ms | Allocations: 2053)
Tag Load (3.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 36.5ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.2ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2053)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 2052)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 19.7ms | Allocations: 2052)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 2052)
Rendered products/index.html.erb within layouts/application (Duration: 366.5ms | Allocations: 48191)
Rendered layout layouts/application.html.erb (Duration: 405.9ms | Allocations: 55907)

Completed 200 OK in 429ms (Views: 372.6ms | ActiveRecord: 37.1ms | Allocations: 57228)

Started GET “/” for 127.0.0.1 at 2022-07-18 18:37:26 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 17.1ms | Allocations: 8568)
Product Exists? (1.0ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 2129)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 2053)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 23.8ms | Allocations: 2053)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2053)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2071)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 2053)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.7ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2053)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2052)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2052)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2052)
Rendered products/index.html.erb within layouts/application (Duration: 240.4ms | Allocations: 48191)
Rendered layout layouts/application.html.erb (Duration: 259.1ms | Allocations: 55868)

Completed 200 OK in 272ms (Views: 241.9ms | ActiveRecord: 18.6ms | Allocations: 57233)

Started GET “/” for 127.0.0.1 at 2022-07-18 18:38:50 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 32.8ms | Allocations: 12759)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 27.9ms | Allocations: 8745)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2243)
Tag Load (5.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2053)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2053)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 2053)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 2071)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2053)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2053)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2053)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 2052)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 2052)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 2052)
Rendered products/index.html.erb within layouts/application (Duration: 250.9ms | Allocations: 61424)
Rendered layout layouts/application.html.erb (Duration: 305.2ms | Allocations: 84235)

Completed 200 OK in 378ms (Views: 270.6ms | ActiveRecord: 47.7ms | Allocations: 98663)

Started DELETE “/products/3” for 127.0.0.1 at 2022-07-18 18:38:53 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"3"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/services/products/product_destroy_service.rb:7:in `call'
TRANSACTION (2.0ms)  BEGIN
↳ app/services/products/product_destroy_service.rb:9:in `call'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."product_id" = $1  [["product_id", 3]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Like Load (1.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1  [["product_id", 3]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Like Destroy (14.3ms)  DELETE FROM "likes" WHERE "likes"."id" = $1  [["id", 10]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Like Destroy (0.7ms)  DELETE FROM "likes" WHERE "likes"."id" = $1  [["id", 11]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Like Destroy (0.9ms)  DELETE FROM "likes" WHERE "likes"."id" = $1  [["id", 12]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Comment Load (0.2ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 3], ["commentable_type", "Product"]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Product::HABTM_Tags Delete All (0.4ms)  DELETE FROM "products_tags" WHERE "products_tags"."product_id" = $1  [["product_id", 3]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
Product Destroy (0.7ms)  DELETE FROM "products" WHERE "products"."id" = $1  [["id", 3]]
↳ app/services/products/product_destroy_service.rb:9:in `call'
TRANSACTION (31.6ms)  COMMIT
↳ app/services/products/product_destroy_service.rb:9:in `call'

Redirected to localhost:3000/ Completed 302 Found in 133ms (ActiveRecord: 58.0ms | Allocations: 15755)

Started GET “/” for 127.0.0.1 at 2022-07-18 18:38:54 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.0ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.6ms | Allocations: 8630)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2218)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2053)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 28.6ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2071)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 2053)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2052)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 2052)
Rendered products/index.html.erb within layouts/application (Duration: 203.1ms | Allocations: 46238)
Rendered layout layouts/application.html.erb (Duration: 219.0ms | Allocations: 54056)

Completed 200 OK in 230ms (Views: 212.1ms | ActiveRecord: 10.0ms | Allocations: 55558)

Started GET “/” for 127.0.0.1 at 2022-07-18 18:39:19 -0500 Processing by ProductsController#index as HTML

Order Load (1.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 36.5ms | Allocations: 12759)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 34.6ms | Allocations: 8743)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2243)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2053)
Tag Load (8.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 2053)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2053)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2053)
Tag Load (3.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2053)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2053)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 2071)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.1ms | Allocations: 2053)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 2053)
Tag Load (3.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.7ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.4ms | Allocations: 2053)
Tag Load (4.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 2053)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 2053)
Tag Load (4.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2052)
Tag Load (3.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2052)
Rendered products/index.html.erb within layouts/application (Duration: 278.2ms | Allocations: 59296)
Rendered layout layouts/application.html.erb (Duration: 344.4ms | Allocations: 82106)

Completed 200 OK in 423ms (Views: 292.4ms | ActiveRecord: 64.7ms | Allocations: 96479)

Started DELETE “/products/15” for 127.0.0.1 at 2022-07-18 18:39:22 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"15"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 15], ["LIMIT", 1]]
↳ app/services/products/product_destroy_service.rb:7:in `call'

Completed 500 Internal Server Error in 49ms (ActiveRecord: 0.3ms | Allocations: 9417)

NameError (undefined local variable or method ‘action_name’ for #<Products::ProductDestroyService:0x00007f34be8ba160 @params=“15”>

query ||= "#{action_name}?"
             ^^^^^^^^^^^):

app/services/products/product_destroy_service.rb:7:in ‘call’ app/services/application_service.rb:5:in ‘call’ app/controllers/products_controller.rb:53:in ‘destroy’ Started GET “/” for 127.0.0.1 at 2022-07-18 18:40:59 -0500 Processing by ProductsController#index as HTML

Order Load (1.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 37.5ms | Allocations: 12771)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 27.0ms | Allocations: 8745)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2243)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 2053)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2058)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2053)
Tag Load (4.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2053)
Tag Load (3.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2071)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 2053)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2053)
Tag Load (3.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 2052)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2052)
Rendered products/index.html.erb within layouts/application (Duration: 226.6ms | Allocations: 59315)
Rendered layout layouts/application.html.erb (Duration: 278.8ms | Allocations: 82126)

Completed 200 OK in 385ms (Views: 238.0ms | ActiveRecord: 53.7ms | Allocations: 96548)

Started DELETE “/products/15” for 127.0.0.1 at 2022-07-18 18:41:03 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"15"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 15], ["LIMIT", 1]]
↳ app/services/products/product_destroy_service.rb:8:in `call'

Completed 500 Internal Server Error in 30ms (ActiveRecord: 0.3ms | Allocations: 3648)

NameError (undefined local variable or method ‘action_name’ for #<Products::ProductDestroyService:0x00007f34be79d2f0 @params=“15”>

query ||= "#{action_name}?"
             ^^^^^^^^^^^):

app/services/products/product_destroy_service.rb:8:in ‘call’ app/services/application_service.rb:5:in ‘call’ app/controllers/products_controller.rb:53:in ‘destroy’ Started GET “/” for 127.0.0.1 at 2022-07-18 18:41:34 -0500 Processing by ProductsController#index as HTML

Order Load (1.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 33.9ms | Allocations: 12777)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 32.7ms | Allocations: 8745)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2243)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2053)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.8ms | Allocations: 2071)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2053)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2053)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2052)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2052)
Rendered products/index.html.erb within layouts/application (Duration: 269.8ms | Allocations: 59316)
Rendered layout layouts/application.html.erb (Duration: 318.1ms | Allocations: 82127)

Completed 200 OK in 402ms (Views: 309.6ms | ActiveRecord: 28.8ms | Allocations: 96561)

Started DELETE “/products/15” for 127.0.0.1 at 2022-07-18 18:41:37 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"15"}
Product Load (2.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 15], ["LIMIT", 1]]
↳ app/services/products/product_destroy_service.rb:14:in `destroy'

Completed 500 Internal Server Error in 16ms (ActiveRecord: 2.2ms | Allocations: 3645)

NameError (undefined local variable or method ‘action_name’ for #<Products::ProductDestroyService:0x00007f34be4b5740 @params=“15”>

query ||= "#{action_name}?"
             ^^^^^^^^^^^):

app/services/products/product_destroy_service.rb:14:in ‘destroy’ app/services/products/product_destroy_service.rb:7:in ‘call’ app/services/application_service.rb:5:in ‘call’ app/controllers/products_controller.rb:53:in ‘destroy’ Started GET “/” for 127.0.0.1 at 2022-07-18 18:42:41 -0500 Processing by ProductsController#index as HTML

Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 32.2ms | Allocations: 12784)
Product Exists? (1.8ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 26.8ms | Allocations: 8745)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2243)
Tag Load (4.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 28.8ms | Allocations: 2053)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 32.9ms | Allocations: 2053)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 23.7ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.7ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 40.2ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2071)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 2053)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2053)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.2ms | Allocations: 2053)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2052)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2052)
Rendered products/index.html.erb within layouts/application (Duration: 348.9ms | Allocations: 59323)
Rendered layout layouts/application.html.erb (Duration: 415.3ms | Allocations: 82134)

Completed 200 OK in 482ms (Views: 391.5ms | ActiveRecord: 40.2ms | Allocations: 96541)

Started DELETE “/products/15” for 127.0.0.1 at 2022-07-18 18:42:44 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"15"}
Product Load (1.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 15], ["LIMIT", 1]]
↳ app/services/products/product_destroy_service.rb:15:in `destroy'

Completed 500 Internal Server Error in 19ms (ActiveRecord: 1.2ms | Allocations: 3670)

NameError (undefined local variable or method ‘action_name’ for #<Products::ProductDestroyService:0x00007f34bf0cd348 @params=“15”>

query ||= "#{action_name}?"
             ^^^^^^^^^^^):

app/services/products/product_destroy_service.rb:15:in ‘destroy’ app/services/products/product_destroy_service.rb:7:in ‘call’ app/services/application_service.rb:5:in ‘call’ app/controllers/products_controller.rb:53:in ‘destroy’ Started GET “/” for 127.0.0.1 at 2022-07-18 18:44:26 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.0ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 50.0ms | Allocations: 12789)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 64.4ms | Allocations: 8746)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2243)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2053)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2053)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2053)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.3ms | Allocations: 2071)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 2053)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2053)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2053)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2052)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2052)
Rendered products/index.html.erb within layouts/application (Duration: 329.2ms | Allocations: 59329)
Rendered layout layouts/application.html.erb (Duration: 377.6ms | Allocations: 82140)

Completed 200 OK in 487ms (Views: 344.8ms | ActiveRecord: 49.4ms | Allocations: 96579)

Started DELETE “/products/15” for 127.0.0.1 at 2022-07-18 18:44:29 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"15"}
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 15], ["LIMIT", 1]]
↳ app/services/products/product_destroy_service.rb:7:in `call'
CACHE Product Load (0.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 15], ["LIMIT", 1]]
↳ app/services/products/product_destroy_service.rb:8:in `call'

Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.6ms | Allocations: 4206)

NameError (undefined local variable or method ‘action_name’ for #<Products::ProductDestroyService:0x00007f34bebea628 @params=“15”>

query ||= "#{action_name}?"
             ^^^^^^^^^^^):

app/services/products/product_destroy_service.rb:8:in ‘call’ app/services/application_service.rb:5:in ‘call’ app/controllers/products_controller.rb:53:in ‘destroy’ Started GET “/” for 127.0.0.1 at 2022-07-18 18:45:35 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 35.3ms | Allocations: 12795)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 46.1ms | Allocations: 8745)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2243)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2053)
Tag Load (5.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 2053)
Tag Load (4.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2053)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 2053)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 2071)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 19.3ms | Allocations: 2054)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 24.3ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 2053)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2053)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.2ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 2053)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 2052)
Tag Load (3.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 2052)
Rendered products/index.html.erb within layouts/application (Duration: 352.4ms | Allocations: 59335)
Rendered layout layouts/application.html.erb (Duration: 420.8ms | Allocations: 82146)

Completed 200 OK in 500ms (Views: 374.6ms | ActiveRecord: 57.7ms | Allocations: 96572)

Started DELETE “/products/15” for 127.0.0.1 at 2022-07-18 18:45:38 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"15"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 15], ["LIMIT", 1]]
↳ app/services/products/product_destroy_service.rb:7:in `call'

Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.2ms | Allocations: 3632)

NameError (undefined local variable or method ‘action_name’ for #<Products::ProductDestroyService:0x00007f34bea6ad98 @params=“15”>

query ||= "#{action_name}?"
             ^^^^^^^^^^^):

app/services/products/product_destroy_service.rb:7:in ‘call’ app/services/application_service.rb:5:in ‘call’ app/controllers/products_controller.rb:53:in ‘destroy’ Started GET “/” for 127.0.0.1 at 2022-07-18 18:48:24 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 26.1ms | Allocations: 12801)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 29.0ms | Allocations: 8745)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.2ms | Allocations: 2243)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2053)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 2071)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 2053)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 2052)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 2052)
Rendered products/index.html.erb within layouts/application (Duration: 202.2ms | Allocations: 59345)
Rendered layout layouts/application.html.erb (Duration: 239.6ms | Allocations: 82156)

Completed 200 OK in 293ms (Views: 219.5ms | ActiveRecord: 29.6ms | Allocations: 96575)

Started DELETE “/products/15” for 127.0.0.1 at 2022-07-18 18:48:27 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"15"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 15], ["LIMIT", 1]]
↳ app/services/products/product_show_service.rb:7:in `call'

Redirected to localhost:3000/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms | Allocations: 2243)

Started GET “/” for 127.0.0.1 at 2022-07-18 18:48:27 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.8ms | Allocations: 8629)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 2219)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 2053)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 2071)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2053)
Tag Load (3.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2053)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2053)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 2052)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 2052)
Rendered products/index.html.erb within layouts/application (Duration: 161.2ms | Allocations: 46237)
Rendered layout layouts/application.html.erb (Duration: 176.8ms | Allocations: 53997)

Completed 200 OK in 182ms (Views: 164.2ms | ActiveRecord: 13.4ms | Allocations: 55501)

Started DELETE “/products/15” for 127.0.0.1 at 2022-07-18 18:48:29 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"15"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 15], ["LIMIT", 1]]
↳ app/services/products/product_show_service.rb:7:in `call'

Redirected to localhost:3000/ Completed 302 Found in 4ms (ActiveRecord: 0.2ms | Allocations: 1293)

Started GET “/” for 127.0.0.1 at 2022-07-18 18:48:29 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.2ms | Allocations: 8566)
Product Exists? (1.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2129)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 2053)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2053)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2053)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2053)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 2053)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 2071)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 2053)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2053)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 2053)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 2053)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2053)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 2052)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2052)
Rendered products/index.html.erb within layouts/application (Duration: 149.8ms | Allocations: 46066)
Rendered layout layouts/application.html.erb (Duration: 162.4ms | Allocations: 53784)

Completed 200 OK in 170ms (Views: 152.1ms | ActiveRecord: 11.2ms | Allocations: 55160)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-18 18:48:32 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 1.7ms | Allocations: 565)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 6.9ms | Allocations: 2383)
Rendered layout layouts/application.html.erb (Duration: 27.2ms | Allocations: 10302)

Completed 200 OK in 56ms (Views: 30.5ms | ActiveRecord: 6.8ms | Allocations: 15180)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-18 18:48:39 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"alvaro@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 326ms (ActiveRecord: 0.4ms | Allocations: 3242)

Started GET “/” for 127.0.0.1 at 2022-07-18 18:48:39 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 25.4ms | Allocations: 8586)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 16.0ms | Allocations: 2365)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1479)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1479)
Tag Load (4.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1479)
Tag Load (9.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 1479)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1479)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1479)
Tag Load (6.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1479)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1478)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1478)
Rendered products/index.html.erb within layouts/application (Duration: 176.0ms | Allocations: 37172)
Rendered layout layouts/application.html.erb (Duration: 189.5ms | Allocations: 44864)

Completed 200 OK in 202ms (Views: 166.4ms | ActiveRecord: 28.6ms | Allocations: 46286)

Started DELETE “/products/15” for 127.0.0.1 at 2022-07-18 18:48:42 -0500 Processing by ProductsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"15"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 15], ["LIMIT", 1]]
↳ app/services/products/product_show_service.rb:7:in `call'
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:53:in `destroy'
TRANSACTION (0.3ms)  BEGIN
↳ app/services/products/product_destroy_service.rb:7:in `call'
OrderLine Load (1.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."product_id" = $1  [["product_id", 15]]
↳ app/services/products/product_destroy_service.rb:7:in `call'
Like Load (0.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1  [["product_id", 15]]
↳ app/services/products/product_destroy_service.rb:7:in `call'
Like Destroy (3.2ms)  DELETE FROM "likes" WHERE "likes"."id" = $1  [["id", 6]]
↳ app/services/products/product_destroy_service.rb:7:in `call'
Like Destroy (2.9ms)  DELETE FROM "likes" WHERE "likes"."id" = $1  [["id", 7]]
↳ app/services/products/product_destroy_service.rb:7:in `call'
Like Destroy (1.6ms)  DELETE FROM "likes" WHERE "likes"."id" = $1  [["id", 8]]
↳ app/services/products/product_destroy_service.rb:7:in `call'
Like Destroy (0.4ms)  DELETE FROM "likes" WHERE "likes"."id" = $1  [["id", 9]]
↳ app/services/products/product_destroy_service.rb:7:in `call'
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 15], ["commentable_type", "Product"]]
↳ app/services/products/product_destroy_service.rb:7:in `call'
Product::HABTM_Tags Delete All (1.0ms)  DELETE FROM "products_tags" WHERE "products_tags"."product_id" = $1  [["product_id", 15]]
↳ app/services/products/product_destroy_service.rb:7:in `call'
Product Destroy (0.5ms)  DELETE FROM "products" WHERE "products"."id" = $1  [["id", 15]]
↳ app/services/products/product_destroy_service.rb:7:in `call'
TRANSACTION (1.6ms)  COMMIT
↳ app/services/products/product_destroy_service.rb:7:in `call'

Redirected to localhost:3000/products Completed 302 Found in 77ms (ActiveRecord: 18.6ms | Allocations: 16308)

Started GET “/products” for 127.0.0.1 at 2022-07-18 18:48:42 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 15.8ms | Allocations: 8630)
Product Exists? (3.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2403)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1479)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1479)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.2ms | Allocations: 1479)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1479)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1478)
Rendered products/index.html.erb within layouts/application (Duration: 129.1ms | Allocations: 35703)
Rendered layout layouts/application.html.erb (Duration: 144.7ms | Allocations: 43513)

Completed 200 OK in 153ms (Views: 134.5ms | ActiveRecord: 11.4ms | Allocations: 45011)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:50:45 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 21.4ms | Allocations: 6426)
Rendered products/new.html.erb within layouts/application (Duration: 23.6ms | Allocations: 6749)
Rendered layout layouts/application.html.erb (Duration: 65.7ms | Allocations: 29532)

Completed 200 OK in 90ms (Views: 65.4ms | ActiveRecord: 7.0ms | Allocations: 36504)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:50:48 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.4ms)  BEGIN
↳ app/services/products/product_creator_service.rb:9:in `call'
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", ""], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-18 23:50:48.576760"], ["updated_at", "2022-07-18 23:50:48.576760"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:9:in `call'
TRANSACTION (16.7ms)  COMMIT
↳ app/services/products/product_creator_service.rb:9:in `call'

Redirected to localhost:3000/products Completed 302 Found in 35ms (ActiveRecord: 17.4ms | Allocations: 4174)

Started GET “/products” for 127.0.0.1 at 2022-07-18 18:50:48 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 25.8ms | Allocations: 12782)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 28.7ms | Allocations: 8841)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1696)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 1479)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1479)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1478)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1447)
Rendered products/index.html.erb within layouts/application (Duration: 160.2ms | Allocations: 48391)
Rendered layout layouts/application.html.erb (Duration: 178.4ms | Allocations: 56222)

Completed 200 OK in 220ms (Views: 167.6ms | ActiveRecord: 18.8ms | Allocations: 65867)

Started GET “/products” for 127.0.0.1 at 2022-07-18 18:51:23 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (6.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 37.7ms | Allocations: 12807)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 40.4ms | Allocations: 12186)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1696)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1479)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1479)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1479)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1479)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1479)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1478)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1447)
Rendered products/index.html.erb within layouts/application (Duration: 211.2ms | Allocations: 53641)
Rendered layout layouts/application.html.erb (Duration: 259.5ms | Allocations: 76490)

Completed 200 OK in 330ms (Views: 235.9ms | ActiveRecord: 41.8ms | Allocations: 90864)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:51:27 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 16.3ms | Allocations: 2531)
Rendered products/new.html.erb within layouts/application (Duration: 16.5ms | Allocations: 2619)
Rendered layout layouts/application.html.erb (Duration: 50.1ms | Allocations: 10342)

Completed 200 OK in 53ms (Views: 52.2ms | ActiveRecord: 0.2ms | Allocations: 10692)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:51:29 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.6ms)  BEGIN
↳ app/services/products/product_creator_service.rb:9:in `call'
Product Create (1.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", ""], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-18 23:51:29.653392"], ["updated_at", "2022-07-18 23:51:29.653392"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:9:in `call'
TRANSACTION (19.4ms)  COMMIT
↳ app/services/products/product_creator_service.rb:9:in `call'

Redirected to localhost:3000/products Completed 302 Found in 37ms (ActiveRecord: 21.4ms | Allocations: 3903)

Started GET “/products” for 127.0.0.1 at 2022-07-18 18:51:29 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.0ms | Allocations: 8635)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.1ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 2404)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1479)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1479)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1479)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1479)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1478)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1447)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1447)
Rendered products/index.html.erb within layouts/application (Duration: 127.0ms | Allocations: 38755)
Rendered layout layouts/application.html.erb (Duration: 140.0ms | Allocations: 46525)

Completed 200 OK in 145ms (Views: 130.2ms | ActiveRecord: 10.5ms | Allocations: 48066)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:52:49 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 24.2ms | Allocations: 6075)
Rendered products/new.html.erb within layouts/application (Duration: 24.7ms | Allocations: 6170)
Rendered layout layouts/application.html.erb (Duration: 92.8ms | Allocations: 28925)

Completed 200 OK in 117ms (Views: 90.4ms | ActiveRecord: 8.3ms | Allocations: 35754)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:52:51 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (1.0ms)  BEGIN
↳ app/services/products/product_creator_service.rb:9:in `call'
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", ""], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-18 23:52:52.019232"], ["updated_at", "2022-07-18 23:52:52.019232"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:9:in `call'
TRANSACTION (3.0ms)  COMMIT
↳ app/services/products/product_creator_service.rb:9:in `call'

Redirected to localhost:3000/products Completed 302 Found in 26ms (ActiveRecord: 4.4ms | Allocations: 4151)

Started GET “/products” for 127.0.0.1 at 2022-07-18 18:52:52 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (4.0ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 28.1ms | Allocations: 12809)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 24.5ms | Allocations: 8843)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1696)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1479)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1479)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1479)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1479)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1479)
Tag Load (3.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1479)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1497)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1479)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1479)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1479)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1478)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1447)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1447)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1447)
Rendered products/index.html.erb within layouts/application (Duration: 166.7ms | Allocations: 51457)
Rendered layout layouts/application.html.erb (Duration: 180.1ms | Allocations: 59330)

Completed 200 OK in 225ms (Views: 155.3ms | ActiveRecord: 33.2ms | Allocations: 69040)

Started GET “/products” for 127.0.0.1 at 2022-07-18 18:53:14 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 31.1ms | Allocations: 12814)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.9ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 51.9ms | Allocations: 12181)
Tag Load (4.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 1696)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1479)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1479)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1479)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1479)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1497)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1479)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1479)
Tag Load (4.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1479)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1479)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1478)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1447)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1447)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1447)
Rendered products/index.html.erb within layouts/application (Duration: 228.1ms | Allocations: 56684)
Rendered layout layouts/application.html.erb (Duration: 313.6ms | Allocations: 79473)

Completed 200 OK in 378ms (Views: 279.0ms | ActiveRecord: 46.0ms | Allocations: 93812)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:53:18 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 10.9ms | Allocations: 2531)
Rendered products/new.html.erb within layouts/application (Duration: 14.1ms | Allocations: 2619)
Rendered layout layouts/application.html.erb (Duration: 40.4ms | Allocations: 10295)

Completed 200 OK in 48ms (Views: 47.3ms | ActiveRecord: 0.2ms | Allocations: 10643)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:53:26 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.2ms)  BEGIN
↳ app/services/products/product_creator_service.rb:9:in `call'
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", ""], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-18 23:53:26.224906"], ["updated_at", "2022-07-18 23:53:26.224906"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:9:in `call'
TRANSACTION (1.7ms)  COMMIT
↳ app/services/products/product_creator_service.rb:9:in `call'

Redirected to localhost:3000/products Completed 302 Found in 40ms (ActiveRecord: 2.3ms | Allocations: 9900)

Started GET “/products” for 127.0.0.1 at 2022-07-18 18:53:26 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.9ms | Allocations: 8633)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (3.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2404)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1479)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1478)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1447)
Tag Load (3.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1447)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1447)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1447)
Rendered products/index.html.erb within layouts/application (Duration: 136.0ms | Allocations: 41828)
Rendered layout layouts/application.html.erb (Duration: 151.5ms | Allocations: 49654)

Completed 200 OK in 160ms (Views: 138.6ms | ActiveRecord: 13.9ms | Allocations: 51215)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:54:09 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 22.4ms | Allocations: 6105)
Rendered products/new.html.erb within layouts/application (Duration: 24.4ms | Allocations: 6200)
Rendered layout layouts/application.html.erb (Duration: 65.3ms | Allocations: 28826)

Completed 200 OK in 89ms (Views: 64.1ms | ActiveRecord: 6.7ms | Allocations: 35760)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:54:14 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.2ms)  BEGIN
↳ app/services/products/product_creator_service.rb:9:in `call'
Product Create (0.8ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", ""], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-18 23:54:14.536307"], ["updated_at", "2022-07-18 23:54:14.536307"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:9:in `call'
TRANSACTION (16.7ms)  COMMIT
↳ app/services/products/product_creator_service.rb:9:in `call'

Redirected to localhost:3000/products Completed 302 Found in 65ms (ActiveRecord: 23.1ms | Allocations: 10672)

Started GET “/products” for 127.0.0.1 at 2022-07-18 18:54:14 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 25.6ms | Allocations: 12838)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 37.3ms | Allocations: 12182)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1696)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1479)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1479)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1479)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1479)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1479)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1479)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1497)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1479)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1479)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1479)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1479)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1478)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1447)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1447)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1452)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1447)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1447)
Rendered products/index.html.erb within layouts/application (Duration: 215.1ms | Allocations: 57884)
Rendered layout layouts/application.html.erb (Duration: 249.0ms | Allocations: 80536)

Completed 200 OK in 289ms (Views: 230.4ms | ActiveRecord: 28.4ms | Allocations: 90424)

Started GET “/products” for 127.0.0.1 at 2022-07-18 18:59:19 -0500

ActiveRecord::SchemaMigration Pluck (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#index as HTML

Order Load (1.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 58.3ms | Allocations: 14282)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (2.9ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (3.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (6.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 857.7ms | Allocations: 292840)
Tag Load (4.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 26.2ms | Allocations: 1696)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.9ms | Allocations: 1479)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 1479)
Tag Load (7.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.3ms | Allocations: 1479)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 44.5ms | Allocations: 1479)
Tag Load (9.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 20.3ms | Allocations: 1479)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 25.2ms | Allocations: 1479)
Tag Load (3.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1497)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 1479)
Tag Load (3.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 1479)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 19.1ms | Allocations: 1479)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1479)
Tag Load (8.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.4ms | Allocations: 1479)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1479)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 28.2ms | Allocations: 1478)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1447)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1447)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1447)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 1447)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 1447)
Rendered products/index.html.erb within layouts/application (Duration: 1330.0ms | Allocations: 343941)
Rendered layout layouts/application.html.erb (Duration: 1591.1ms | Allocations: 399366)

Completed 200 OK in 1806ms (Views: 1515.3ms | ActiveRecord: 96.9ms | Allocations: 423324)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:59:25 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 12.0ms | Allocations: 3564)
Rendered products/new.html.erb within layouts/application (Duration: 13.1ms | Allocations: 3866)
Rendered layout layouts/application.html.erb (Duration: 39.2ms | Allocations: 11664)

Completed 200 OK in 43ms (Views: 40.1ms | ActiveRecord: 0.7ms | Allocations: 12135)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:59:29 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.0ms | Allocations: 3859)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f9771d646f0 @name=“”, @description=“”, @price=“10”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:5:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 18:59:53 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 15.9ms | Allocations: 2552)
Rendered products/new.html.erb within layouts/application (Duration: 16.2ms | Allocations: 2634)
Rendered layout layouts/application.html.erb (Duration: 47.6ms | Allocations: 10441)

Completed 200 OK in 49ms (Views: 47.9ms | ActiveRecord: 0.4ms | Allocations: 10776)

Started POST “/products” for 127.0.0.1 at 2022-07-18 18:59:57 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.0ms | Allocations: 4465)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f9771e49f48 @name=“NEW PRODUCT”, @description=“”, @price=“10”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:5:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 19:00:50 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (1.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 26.7ms | Allocations: 6093)
Rendered products/new.html.erb within layouts/application (Duration: 32.8ms | Allocations: 6188)
Rendered layout layouts/application.html.erb (Duration: 72.4ms | Allocations: 28933)

Completed 200 OK in 110ms (Views: 69.0ms | ActiveRecord: 10.8ms | Allocations: 35879)

Started POST “/products” for 127.0.0.1 at 2022-07-18 19:00:52 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.0ms | Allocations: 3617)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f9771d3f490 @name=“NEW PRODUCT”, @description=“”, @price=“10”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:5:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 19:03:09 -0500

ActiveRecord::SchemaMigration Pluck (0.5ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 936.5ms | Allocations: 286830)
Rendered products/new.html.erb within layouts/application (Duration: 939.3ms | Allocations: 287387)
Rendered layout layouts/application.html.erb (Duration: 1146.8ms | Allocations: 342863)

Completed 200 OK in 1230ms (Views: 1159.2ms | ActiveRecord: 14.6ms | Allocations: 355688)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 19:03:41 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 24.0ms | Allocations: 6397)
Rendered products/new.html.erb within layouts/application (Duration: 26.9ms | Allocations: 6696)
Rendered layout layouts/application.html.erb (Duration: 78.4ms | Allocations: 29867)

Completed 200 OK in 128ms (Views: 79.1ms | ActiveRecord: 7.8ms | Allocations: 37092)

Started POST “/products” for 127.0.0.1 at 2022-07-18 19:03:44 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.1ms)  BEGIN
↳ app/services/products/product_creator_service.rb:9:in `call'
Product Create (0.5ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "NEW PRODUCT"], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-19 00:03:44.942216"], ["updated_at", "2022-07-19 00:03:44.942216"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:9:in `call'
TRANSACTION (1.8ms)  COMMIT
↳ app/services/products/product_creator_service.rb:9:in `call'

Redirected to localhost:3000/products Completed 302 Found in 22ms (ActiveRecord: 2.5ms | Allocations: 6015)

Started GET “/products” for 127.0.0.1 at 2022-07-18 19:03:44 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 24.0ms | Allocations: 13434)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 29.3ms | Allocations: 12151)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1716)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1514)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 190.1ms | Allocations: 60873)
Rendered layout layouts/application.html.erb (Duration: 203.3ms | Allocations: 68677)

Completed 200 OK in 294ms (Views: 186.0ms | ActiveRecord: 27.2ms | Allocations: 82202)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 19:03:47 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 16.5ms | Allocations: 2395)
Rendered products/new.html.erb within layouts/application (Duration: 17.8ms | Allocations: 2477)
Rendered layout layouts/application.html.erb (Duration: 50.4ms | Allocations: 10153)

Completed 200 OK in 55ms (Views: 51.7ms | ActiveRecord: 1.0ms | Allocations: 10491)

Started POST “/products” for 127.0.0.1 at 2022-07-18 19:03:52 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
TRANSACTION (0.2ms)  BEGIN
↳ app/services/products/product_creator_service.rb:9:in `call'
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", ""], ["description", ""], ["price", "1.0"], ["stock", 1], ["created_at", "2022-07-19 00:03:52.409802"], ["updated_at", "2022-07-19 00:03:52.409802"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:9:in `call'
TRANSACTION (1.8ms)  COMMIT
↳ app/services/products/product_creator_service.rb:9:in `call'

Redirected to localhost:3000/products Completed 302 Found in 15ms (ActiveRecord: 2.4ms | Allocations: 2539)

Started GET “/products” for 127.0.0.1 at 2022-07-18 19:03:52 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.2ms | Allocations: 8587)
Product Exists? (1.1ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 2334)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1512)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1462)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1462)
Rendered products/index.html.erb within layouts/application (Duration: 180.6ms | Allocations: 46568)
Rendered layout layouts/application.html.erb (Duration: 212.5ms | Allocations: 54249)

Completed 200 OK in 223ms (Views: 196.3ms | ActiveRecord: 19.1ms | Allocations: 55650)

Started GET “/products” for 127.0.0.1 at 2022-07-18 19:07:42 -0500 Processing by ProductsController#index as HTML

Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (10.9ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 18.6ms | Allocations: 8571)
Product Exists? (1.8ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 17.1ms | Allocations: 2334)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1512)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1494)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 1462)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1462)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1462)
Tag Load (3.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 1462)
Tag Load (4.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 1462)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1462)
Rendered products/index.html.erb within layouts/application (Duration: 252.5ms | Allocations: 46536)
Rendered layout layouts/application.html.erb (Duration: 276.3ms | Allocations: 54203)

Completed 200 OK in 284ms (Views: 239.9ms | ActiveRecord: 37.6ms | Allocations: 55567)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 19:07:49 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 20.1ms | Allocations: 6086)
Rendered products/new.html.erb within layouts/application (Duration: 20.6ms | Allocations: 6181)
Rendered layout layouts/application.html.erb (Duration: 62.8ms | Allocations: 28918)

Completed 200 OK in 96ms (Views: 61.0ms | ActiveRecord: 7.2ms | Allocations: 35855)

Started POST “/products” for 127.0.0.1 at 2022-07-18 19:07:52 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"2", "stock"=>"20"}, "commit"=>"Add Product"}
TRANSACTION (0.1ms)  BEGIN
↳ app/services/products/product_creator_service.rb:9:in `call'
Product Create (1.7ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", ""], ["description", ""], ["price", "2.0"], ["stock", 20], ["created_at", "2022-07-19 00:07:52.422649"], ["updated_at", "2022-07-19 00:07:52.422649"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:9:in `call'
TRANSACTION (1.5ms)  COMMIT
↳ app/services/products/product_creator_service.rb:9:in `call'

Redirected to localhost:3000/products Completed 302 Found in 19ms (ActiveRecord: 3.3ms | Allocations: 4291)

Started GET “/products” for 127.0.0.1 at 2022-07-18 19:07:52 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 24.5ms | Allocations: 12628)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 18.8ms | Allocations: 8987)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1711)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 21.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1493)
Tag Load (3.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1462)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1462)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Rendered products/index.html.erb within layouts/application (Duration: 184.3ms | Allocations: 59263)
Rendered layout layouts/application.html.erb (Duration: 200.2ms | Allocations: 67042)

Completed 200 OK in 233ms (Views: 184.1ms | ActiveRecord: 24.4ms | Allocations: 76688)

Started GET “/products” for 127.0.0.1 at 2022-07-18 19:09:30 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (5.0ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.0ms | Allocations: 8611)
Product Exists? (1.1ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 2356)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1494)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1494)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1512)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (4.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1462)
Tag Load (3.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1462)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1464)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1462)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1462)
Rendered products/index.html.erb within layouts/application (Duration: 185.0ms | Allocations: 48147)
Rendered layout layouts/application.html.erb (Duration: 204.9ms | Allocations: 55814)

Completed 200 OK in 215ms (Views: 173.6ms | ActiveRecord: 36.0ms | Allocations: 57317)

Started GET “/products” for 127.0.0.1 at 2022-07-18 19:09:32 -0500 Processing by ProductsController#index as HTML

Order Load (1.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 74.6ms | Allocations: 12646)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 67.9ms | Allocations: 12343)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.7ms | Allocations: 1711)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1512)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1494)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1462)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1462)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1462)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1462)
Rendered products/index.html.erb within layouts/application (Duration: 342.1ms | Allocations: 64539)
Rendered layout layouts/application.html.erb (Duration: 379.9ms | Allocations: 87267)

Completed 200 OK in 471ms (Views: 353.2ms | ActiveRecord: 43.4ms | Allocations: 101539)

Started GET “/products/new” for 127.0.0.1 at 2022-07-18 19:09:37 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (1.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 12.9ms | Allocations: 2430)
Rendered products/new.html.erb within layouts/application (Duration: 14.5ms | Allocations: 2514)
Rendered layout layouts/application.html.erb (Duration: 37.7ms | Allocations: 10195)

Completed 200 OK in 41ms (Views: 36.5ms | ActiveRecord: 1.9ms | Allocations: 10533)

Started POST “/products” for 127.0.0.1 at 2022-07-18 19:09:39 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"3", "stock"=>"30"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.0ms | Allocations: 3461)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f1aec603e80 @name=“”, @description=“”, @price=“3”, @stock=“30”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/services/products/product_creator_service.rb:16:in ‘validations’ app/services/products/product_creator_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 19:10:37 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 27.5ms | Allocations: 6067)
Rendered products/new.html.erb within layouts/application (Duration: 28.3ms | Allocations: 6162)
Rendered layout layouts/application.html.erb (Duration: 75.1ms | Allocations: 28900)

Completed 200 OK in 100ms (Views: 73.3ms | ActiveRecord: 7.7ms | Allocations: 35782)

Started POST “/products” for 127.0.0.1 at 2022-07-18 19:10:39 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 28ms (ActiveRecord: 0.0ms | Allocations: 3630)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f1ab7c8e398 @name=“NEW PRODUCT”, @description=“”, @price=“10”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/services/products/product_creator_service.rb:16:in ‘validations’ app/services/products/product_creator_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 19:10:41 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 14.4ms | Allocations: 2496)
Rendered products/new.html.erb within layouts/application (Duration: 14.8ms | Allocations: 2578)
Rendered layout layouts/application.html.erb (Duration: 34.3ms | Allocations: 10383)

Completed 200 OK in 36ms (Views: 34.6ms | ActiveRecord: 0.5ms | Allocations: 10712)

Started POST “/products” for 127.0.0.1 at 2022-07-18 19:10:53 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.0ms | Allocations: 4476)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f1aec2eaaa0 @name=“”, @description=“”, @price=“10”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/forms/product_form.rb:11:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 19:14:00 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 28.8ms | Allocations: 6061)
Rendered products/new.html.erb within layouts/application (Duration: 31.4ms | Allocations: 6156)
Rendered layout layouts/application.html.erb (Duration: 73.7ms | Allocations: 28902)

Completed 200 OK in 99ms (Views: 73.6ms | ActiveRecord: 9.1ms | Allocations: 35845)

Started POST “/products” for 127.0.0.1 at 2022-07-18 19:14:01 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.0ms | Allocations: 3647)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f1aec7b4a68 @name=“”, @description=“”, @price=“10”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/forms/product_form.rb:11:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 19:16:31 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (2.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 29.5ms | Allocations: 6085)
Rendered products/new.html.erb within layouts/application (Duration: 34.6ms | Allocations: 6180)
Rendered layout layouts/application.html.erb (Duration: 75.4ms | Allocations: 28828)

Completed 200 OK in 124ms (Views: 71.9ms | ActiveRecord: 21.1ms | Allocations: 35653)

Started POST “/products” for 127.0.0.1 at 2022-07-18 19:16:33 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.0ms | Allocations: 3604)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f1ab7b5fb98 @name=“”, @description=“”, @price=“10”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/forms/product_form.rb:11:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:29:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 19:18:36 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 24.7ms | Allocations: 6067)
Rendered products/new.html.erb within layouts/application (Duration: 26.7ms | Allocations: 6162)
Rendered layout layouts/application.html.erb (Duration: 79.5ms | Allocations: 28946)

Completed 200 OK in 104ms (Views: 80.8ms | ActiveRecord: 7.1ms | Allocations: 35885)

Started POST “/products” for 127.0.0.1 at 2022-07-18 19:18:39 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.0ms | Allocations: 3282)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f1aec2ae9d8 @name=“”, @description=“”, @price=“10”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/forms/product_form.rb:11:in ‘save’ app/controllers/products_controller.rb:35:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 19:19:40 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 27.8ms | Allocations: 6067)
Rendered products/new.html.erb within layouts/application (Duration: 28.4ms | Allocations: 6162)
Rendered layout layouts/application.html.erb (Duration: 69.9ms | Allocations: 28946)

Completed 200 OK in 111ms (Views: 66.2ms | ActiveRecord: 10.5ms | Allocations: 35818)

Started POST “/products” for 127.0.0.1 at 2022-07-18 19:19:41 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.0ms | Allocations: 3714)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f1aec856ea8 @name=“”, @description=“”, @price=“10”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/forms/product_form.rb:11:in ‘save’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 19:19:43 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 15.7ms | Allocations: 2520)
Rendered products/new.html.erb within layouts/application (Duration: 16.2ms | Allocations: 2602)
Rendered layout layouts/application.html.erb (Duration: 32.7ms | Allocations: 10439)

Completed 200 OK in 34ms (Views: 33.3ms | ActiveRecord: 0.6ms | Allocations: 10769)

Started POST “/products” for 127.0.0.1 at 2022-07-18 19:19:45 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms | Allocations: 2449)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f1aec19df58 @name=“NEW PRODUCT”, @description=“”, @price=“10”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/forms/product_form.rb:11:in ‘save’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-18 19:20:17 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 31.0ms | Allocations: 6095)
Rendered products/new.html.erb within layouts/application (Duration: 32.0ms | Allocations: 6190)
Rendered layout layouts/application.html.erb (Duration: 73.7ms | Allocations: 28973)

Completed 200 OK in 104ms (Views: 72.2ms | ActiveRecord: 11.4ms | Allocations: 35912)

Started POST “/products” for 127.0.0.1 at 2022-07-18 19:20:18 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.0ms | Allocations: 3721)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f1aec6601f8 @name=“NEW PRODUCT”, @description=“”, @price=“10”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/forms/product_form.rb:11:in ‘save’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products” for 127.0.0.1 at 2022-07-18 19:27:27 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 34.3ms | Allocations: 12760)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 54.9ms | Allocations: 11854)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1711)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1493)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 1462)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1462)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1462)
Rendered products/index.html.erb within layouts/application (Duration: 270.7ms | Allocations: 63825)
Rendered layout layouts/application.html.erb (Duration: 336.1ms | Allocations: 86593)

Completed 200 OK in 424ms (Views: 321.7ms | ActiveRecord: 34.9ms | Allocations: 104071)

Started GET “/logs” for 127.0.0.1 at 2022-07-18 19:27:32 -0500 Processing by LogsController#index as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms | Allocations: 771)

ArgumentError (wrong number of arguments (given 0, expected 1)):

app/services/logs/log_index_service.rb:2:in ‘initialize’ app/services/application_service.rb:3:in ‘new’ app/services/application_service.rb:3:in ‘call’ app/controllers/logs_controller.rb:8:in ‘index’ Started GET “/logs” for 127.0.0.1 at 2022-07-18 19:27:56 -0500 Processing by LogsController#index as HTML

User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/logs_controller.rb:8:in `index'
Rendering layout layouts/application.html.erb
Rendering logs/index.html.erb within layouts/application
Log Load (20.2ms)  SELECT "logs".* FROM "logs"
↳ app/views/logs/index.html.erb:20
Rendered logs/index.html.erb within layouts/application (Duration: 23.1ms | Allocations: 1142)
Rendered layout layouts/application.html.erb (Duration: 73.4ms | Allocations: 23999)

Completed 200 OK in 126ms (Views: 61.2ms | ActiveRecord: 25.4ms | Allocations: 31618)

Started GET “/products” for 127.0.0.1 at 2022-07-18 19:27:57 -0500 Processing by ProductsController#index as HTML

Order Load (1.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 30.2ms | Allocations: 12770)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 51.0ms | Allocations: 8942)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 1711)
Tag Load (3.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1496)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1512)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.5ms | Allocations: 1494)
Tag Load (3.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.2ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1462)
Tag Load (5.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 1462)
Rendered products/index.html.erb within layouts/application (Duration: 348.5ms | Allocations: 61245)
Rendered layout layouts/application.html.erb (Duration: 375.4ms | Allocations: 69170)

Completed 200 OK in 472ms (Views: 342.9ms | ActiveRecord: 48.0ms | Allocations: 82750)

Started GET “/logs” for 127.0.0.1 at 2022-07-18 19:28:00 -0500 Processing by LogsController#index as HTML

User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/logs_controller.rb:8:in `index'
Rendering layout layouts/application.html.erb
Rendering logs/index.html.erb within layouts/application
Log Load (0.5ms)  SELECT "logs".* FROM "logs"
↳ app/views/logs/index.html.erb:20
Rendered logs/index.html.erb within layouts/application (Duration: 3.1ms | Allocations: 638)
Rendered layout layouts/application.html.erb (Duration: 30.0ms | Allocations: 8322)

Completed 200 OK in 39ms (Views: 30.9ms | ActiveRecord: 1.0ms | Allocations: 9705)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-18 19:28:56 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 25ms (ActiveRecord: 7.8ms | Allocations: 6675)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:28:56 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 23.9ms | Allocations: 12710)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.2ms | Allocations: 8808)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2023)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1787)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1787)
Rendered products/index.html.erb within layouts/application (Duration: 176.0ms | Allocations: 68484)
Rendered layout layouts/application.html.erb (Duration: 207.5ms | Allocations: 91237)

Completed 200 OK in 254ms (Views: 192.9ms | ActiveRecord: 25.1ms | Allocations: 104789)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-18 19:28:57 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 3.3ms | Allocations: 728)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 17.2ms | Allocations: 3503)
Rendered layout layouts/application.html.erb (Duration: 73.9ms | Allocations: 11477)

Completed 200 OK in 82ms (Views: 79.9ms | ActiveRecord: 0.0ms | Allocations: 13161)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-18 19:29:03 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"test1@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2 LIMIT $3  [["user_id", 3], ["status", 0], ["LIMIT", 1]]
↳ app/controllers/sessions_controller.rb:12:in `after_login'
Order Load (1.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
TRANSACTION (0.8ms)  BEGIN
↳ app/controllers/sessions_controller.rb:15:in `after_login'
Order Create (0.7ms)  INSERT INTO "orders" ("date", "user_id", "total", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["date", nil], ["user_id", 3], ["total", "0.0"], ["status", 0], ["created_at", "2022-07-19 00:29:03.939747"], ["updated_at", "2022-07-19 00:29:03.939747"]]
↳ app/controllers/sessions_controller.rb:15:in `after_login'
TRANSACTION (2.2ms)  COMMIT
↳ app/controllers/sessions_controller.rb:15:in `after_login'

Completed 302 Found in 259ms (ActiveRecord: 5.6ms | Allocations: 8435)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:29:03 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.4ms | Allocations: 8551)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 3680)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2638)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 5176)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 2603)
Rendered products/index.html.erb within layouts/application (Duration: 221.3ms | Allocations: 78204)
Rendered layout layouts/application.html.erb (Duration: 233.8ms | Allocations: 86068)

Completed 200 OK in 241ms (Views: 214.7ms | ActiveRecord: 20.0ms | Allocations: 88381)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:29:05 -0500 Processing by OrdersController#index as HTML

User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:10:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (1.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (3.8ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 9.8ms | Allocations: 2308)
Rendered orders/index.html.erb within layouts/application (Duration: 16.0ms | Allocations: 3496)
Rendered layout layouts/application.html.erb (Duration: 33.3ms | Allocations: 11444)

Completed 200 OK in 49ms (Views: 36.6ms | ActiveRecord: 5.5ms | Allocations: 13498)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:29:07 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 13.1ms | Allocations: 8601)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.0ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (7.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 29.9ms | Allocations: 3536)
Tag Load (4.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.7ms | Allocations: 2635)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (5.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.7ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.3ms | Allocations: 2635)
Tag Load (5.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.9ms | Allocations: 2635)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 2635)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.0ms | Allocations: 2635)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2707)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 2661)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.2ms | Allocations: 3424)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 2603)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.5ms | Allocations: 2603)
Tag Load (3.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 2603)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2603)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2605)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2603)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2603)
Rendered products/index.html.erb within layouts/application (Duration: 401.2ms | Allocations: 76373)
Rendered layout layouts/application.html.erb (Duration: 414.7ms | Allocations: 84106)

Completed 200 OK in 428ms (Views: 342.9ms | ActiveRecord: 73.7ms | Allocations: 85850)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:35:24 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 42.8ms | Allocations: 12570)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.9ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 39.9ms | Allocations: 13031)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2853)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2707)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 17.7ms | Allocations: 5072)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2603)
Rendered products/index.html.erb within layouts/application (Duration: 356.5ms | Allocations: 93490)
Rendered layout layouts/application.html.erb (Duration: 402.6ms | Allocations: 116289)

Completed 200 OK in 534ms (Views: 386.7ms | ActiveRecord: 42.3ms | Allocations: 133892)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:35:26 -0500 Processing by OrdersController#index as HTML

User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (0.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 8.1ms | Allocations: 1995)
Rendered orders/index.html.erb within layouts/application (Duration: 11.9ms | Allocations: 2914)
Rendered layout layouts/application.html.erb (Duration: 30.6ms | Allocations: 10862)

Completed 200 OK in 43ms (Views: 30.9ms | ActiveRecord: 1.7ms | Allocations: 13159)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:35:27 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.9ms | Allocations: 8601)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 3536)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2635)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.7ms | Allocations: 2707)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 30.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.4ms | Allocations: 2635)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.8ms | Allocations: 2635)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.0ms | Allocations: 2635)
Tag Load (5.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 3424)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2603)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2603)
Rendered products/index.html.erb within layouts/application (Duration: 307.4ms | Allocations: 76353)
Rendered layout layouts/application.html.erb (Duration: 322.0ms | Allocations: 84106)

Completed 200 OK in 328ms (Views: 290.0ms | ActiveRecord: 33.2ms | Allocations: 85848)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:35:37 -0500 Processing by OrdersController#index as HTML

User Load (3.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (2.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (1.1ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 11.9ms | Allocations: 872)
Rendered orders/index.html.erb within layouts/application (Duration: 18.8ms | Allocations: 1644)
Rendered layout layouts/application.html.erb (Duration: 44.5ms | Allocations: 9350)

Completed 200 OK in 68ms (Views: 41.8ms | ActiveRecord: 6.9ms | Allocations: 10631)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:36:52 -0500 Processing by OrdersController#index as HTML

User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (1.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (0.6ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 28.6ms | Allocations: 4459)
Rendered orders/index.html.erb within layouts/application (Duration: 47.1ms | Allocations: 6661)
Rendered layout layouts/application.html.erb (Duration: 121.9ms | Allocations: 29531)

Completed 200 OK in 181ms (Views: 121.9ms | ActiveRecord: 22.1ms | Allocations: 38359)

Started GET “/orders/1” for 127.0.0.1 at 2022-07-18 19:36:53 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"1"}
Order Load (8.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/services/orders/order_show_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (1.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 7.8ms | Allocations: 916)
User Load (2.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/show.html.erb:4
Rendered comments/_form.html.erb (Duration: 47.7ms | Allocations: 5146)
Comment Load (0.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 1], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 12.4ms | Allocations: 2467)
Rendered orders/show.html.erb within layouts/application (Duration: 96.6ms | Allocations: 11683)
Rendered layout layouts/application.html.erb (Duration: 122.7ms | Allocations: 19527)

Completed 200 OK in 142ms (Views: 115.7ms | ActiveRecord: 16.2ms | Allocations: 21319)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:36:54 -0500 Processing by OrdersController#index as HTML

User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (0.9ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (0.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 8.4ms | Allocations: 898)
Rendered orders/index.html.erb within layouts/application (Duration: 14.4ms | Allocations: 1644)
Rendered layout layouts/application.html.erb (Duration: 54.1ms | Allocations: 9354)

Completed 200 OK in 65ms (Views: 55.2ms | ActiveRecord: 2.0ms | Allocations: 10727)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 19:37:08 -0500 Processing by OrdersController#cart as HTML

Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (2.1ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/cart.html.erb:3
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (1.9ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 2], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 22.9ms | Allocations: 2971)
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 46.2ms | Allocations: 11488)

Completed 200 OK in 71ms (Views: 41.9ms | ActiveRecord: 5.7ms | Allocations: 14529)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:37:14 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 25.6ms | Allocations: 12727)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 25.8ms | Allocations: 10463)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2853)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 19.8ms | Allocations: 5112)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2603)
Rendered products/index.html.erb within layouts/application (Duration: 321.9ms | Allocations: 91433)
Rendered layout layouts/application.html.erb (Duration: 335.2ms | Allocations: 99393)

Completed 200 OK in 369ms (Views: 311.2ms | ActiveRecord: 29.1ms | Allocations: 107406)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-18 19:37:16 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"2", "quantity"=>"3"}, "commit"=>"Add to Cart"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 2], ["product_id", 2], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:51:in `new_or_existing_product'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:53:in `new_or_existing_product'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Create (0.7ms)  INSERT INTO "order_lines" ("order_id", "product_id", "quantity", "total", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["order_id", 2], ["product_id", 2], ["quantity", 3], ["total", "66.0"], ["created_at", "2022-07-19 00:37:16.367696"], ["updated_at", "2022-07-19 00:37:16.367696"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (21.2ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (0.1ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.4ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "66.0"], ["updated_at", "2022-07-19 00:37:16.400131"], ["id", 2]]
↳ app/controllers/order_lines_controller.rb:12:in `create'
TRANSACTION (1.2ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:12:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 71ms (ActiveRecord: 25.0ms | Allocations: 10925)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 19:37:16 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/cart.html.erb:3
Product Load (1.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (1.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.6ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 2], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 22.3ms | Allocations: 5318)
Rendered layout layouts/application.html.erb (Duration: 39.0ms | Allocations: 13161)

Completed 200 OK in 49ms (Views: 36.6ms | ActiveRecord: 4.0ms | Allocations: 15542)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 19:45:38 -0500 Processing by OrdersController#cart as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.4ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 2], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 59.9ms | Allocations: 18365)
Rendered layout layouts/application.html.erb (Duration: 128.3ms | Allocations: 41204)

Completed 200 OK in 175ms (Views: 128.5ms | ActiveRecord: 9.1ms | Allocations: 53631)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:45:40 -0500 Processing by OrdersController#index as HTML

User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 3.9ms | Allocations: 984)
Rendered orders/index.html.erb within layouts/application (Duration: 10.5ms | Allocations: 1886)
Rendered layout layouts/application.html.erb (Duration: 28.3ms | Allocations: 9722)

Completed 200 OK in 48ms (Views: 30.6ms | ActiveRecord: 1.1ms | Allocations: 11738)

Started GET “/orders/1” for 127.0.0.1 at 2022-07-18 19:45:40 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"1"}
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
Rendered orders/_order_card.html.erb (Duration: 6.0ms | Allocations: 2287)
Rendered orders/show.html.erb within layouts/application (Duration: 6.5ms | Allocations: 2380)
Rendered layout layouts/application.html.erb (Duration: 10.7ms | Allocations: 2468)

Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms | Allocations: 2735)

ActionView::Template::Error (undefined method ‘id’ for nil:NilClass

<p>Order: '.freeze;@output_buffer.append=( order.id );@output_buffer.safe_append='</p>
                                                ^^^):
1: <div class="flex flex-col p-2 gap-2 text-lg border-2 border-slate-300 items-center">
2:   <div class="flex flex-col gap-2 justify-center items-center">
3:     <p>Order: <%= order.id %></p>
4:     <p>Date: <%= order.date %></p>
5:     <p>Total: $<%= number_with_precision(order.total, precision: 2) %></p>
6:     <p>Status: <%= order.status.capitalize %></p>

app/views/orders/_order_card.html.erb:3 app/views/orders/show.html.erb:2 Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:46:11 -0500 Processing by OrdersController#index as HTML

User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (0.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (2.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 6.0ms | Allocations: 872)
Rendered orders/index.html.erb within layouts/application (Duration: 11.1ms | Allocations: 1600)
Rendered layout layouts/application.html.erb (Duration: 41.2ms | Allocations: 9362)

Completed 200 OK in 47ms (Views: 39.0ms | ActiveRecord: 3.3ms | Allocations: 10673)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:46:13 -0500 Processing by OrdersController#index as HTML

User Load (7.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (3.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (2.9ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 5.8ms | Allocations: 872)
Rendered orders/index.html.erb within layouts/application (Duration: 15.1ms | Allocations: 1600)
Rendered layout layouts/application.html.erb (Duration: 33.0ms | Allocations: 9306)

Completed 200 OK in 47ms (Views: 29.4ms | ActiveRecord: 13.7ms | Allocations: 10580)

Started GET “/orders/1” for 127.0.0.1 at 2022-07-18 19:46:14 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"1"}
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
Rendered orders/_order_card.html.erb (Duration: 4.8ms | Allocations: 2239)
Rendered orders/show.html.erb within layouts/application (Duration: 6.3ms | Allocations: 2324)
Rendered layout layouts/application.html.erb (Duration: 9.1ms | Allocations: 2412)

Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.0ms | Allocations: 2655)

ActionView::Template::Error (undefined method ‘id’ for nil:NilClass

<p>Order: '.freeze;@output_buffer.append=( order.id );@output_buffer.safe_append='</p>
                                                ^^^):
1: <div class="flex flex-col p-2 gap-2 text-lg border-2 border-slate-300 items-center">
2:   <div class="flex flex-col gap-2 justify-center items-center">
3:     <p>Order: <%= order.id %></p>
4:     <p>Date: <%= order.date %></p>
5:     <p>Total: $<%= number_with_precision(order.total, precision: 2) %></p>
6:     <p>Status: <%= order.status.capitalize %></p>

app/views/orders/_order_card.html.erb:3 app/views/orders/show.html.erb:2 Started GET “/orders/1” for 127.0.0.1 at 2022-07-18 19:46:42 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 11.0ms | Allocations: 4327)
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/show.html.erb:4
Rendered comments/_form.html.erb (Duration: 15.0ms | Allocations: 3270)
Comment Load (0.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 1], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 6.9ms | Allocations: 1956)
Rendered orders/show.html.erb within layouts/application (Duration: 55.2ms | Allocations: 15633)
Rendered layout layouts/application.html.erb (Duration: 90.8ms | Allocations: 38446)

Completed 200 OK in 118ms (Views: 82.9ms | ActiveRecord: 16.1ms | Allocations: 45078)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:46:44 -0500 Processing by OrdersController#index as HTML

User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (1.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (1.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 5.4ms | Allocations: 978)
Rendered orders/index.html.erb within layouts/application (Duration: 10.0ms | Allocations: 1874)
Rendered layout layouts/application.html.erb (Duration: 28.4ms | Allocations: 9710)

Completed 200 OK in 45ms (Views: 27.6ms | ActiveRecord: 3.4ms | Allocations: 11510)

Started GET “/orders/1” for 127.0.0.1 at 2022-07-18 19:46:45 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 4.2ms | Allocations: 828)
User Load (3.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/show.html.erb:4
Rendered comments/_form.html.erb (Duration: 1.7ms | Allocations: 821)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 1], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 12.2ms | Allocations: 932)
Rendered orders/show.html.erb within layouts/application (Duration: 33.8ms | Allocations: 3913)
Rendered layout layouts/application.html.erb (Duration: 57.8ms | Allocations: 11610)

Completed 200 OK in 61ms (Views: 54.4ms | ActiveRecord: 4.3ms | Allocations: 12426)

Started GET “/orders/1” for 127.0.0.1 at 2022-07-18 19:47:02 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (1.0ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 15.1ms | Allocations: 4319)
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/show.html.erb:4
Rendered comments/_form.html.erb (Duration: 11.1ms | Allocations: 3224)
Comment Load (3.0ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 1], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 9.8ms | Allocations: 1922)
Rendered orders/show.html.erb within layouts/application (Duration: 64.9ms | Allocations: 15515)
Rendered layout layouts/application.html.erb (Duration: 119.8ms | Allocations: 38168)

Completed 200 OK in 173ms (Views: 113.3ms | ActiveRecord: 17.9ms | Allocations: 44683)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:47:04 -0500 Processing by OrdersController#index as HTML

User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (2.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 5.7ms | Allocations: 978)
Rendered orders/index.html.erb within layouts/application (Duration: 11.5ms | Allocations: 1874)
Rendered layout layouts/application.html.erb (Duration: 36.3ms | Allocations: 9710)

Completed 200 OK in 51ms (Views: 38.5ms | ActiveRecord: 3.1ms | Allocations: 11498)

Started GET “/orders/1” for 127.0.0.1 at 2022-07-18 19:47:05 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (2.0ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 7.4ms | Allocations: 828)
User Load (3.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/show.html.erb:4
Rendered comments/_form.html.erb (Duration: 3.9ms | Allocations: 821)
Comment Load (3.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 1], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 10.3ms | Allocations: 932)
Rendered orders/show.html.erb within layouts/application (Duration: 39.2ms | Allocations: 3910)
Rendered layout layouts/application.html.erb (Duration: 63.6ms | Allocations: 11611)

Completed 200 OK in 81ms (Views: 63.9ms | ActiveRecord: 9.1ms | Allocations: 12423)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:47:07 -0500 Processing by OrdersController#index as HTML

User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 4.9ms | Allocations: 872)
Rendered orders/index.html.erb within layouts/application (Duration: 15.2ms | Allocations: 1618)
Rendered layout layouts/application.html.erb (Duration: 39.1ms | Allocations: 9324)

Completed 200 OK in 51ms (Views: 42.0ms | ActiveRecord: 1.2ms | Allocations: 10585)

Started GET “/orders/1” for 127.0.0.1 at 2022-07-18 19:47:08 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (4.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 9.0ms | Allocations: 829)
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/show.html.erb:4
Rendered comments/_form.html.erb (Duration: 2.3ms | Allocations: 764)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 1], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 6.3ms | Allocations: 910)
Rendered orders/show.html.erb within layouts/application (Duration: 23.7ms | Allocations: 3771)
Rendered layout layouts/application.html.erb (Duration: 48.3ms | Allocations: 11468)

Completed 200 OK in 58ms (Views: 43.5ms | ActiveRecord: 6.0ms | Allocations: 12264)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 19:47:09 -0500 Processing by OrdersController#cart as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (4.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 2], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 84.8ms | Allocations: 14657)
Rendered layout layouts/application.html.erb (Duration: 103.6ms | Allocations: 22554)

Completed 200 OK in 124ms (Views: 92.1ms | ActiveRecord: 15.0ms | Allocations: 25543)

Started PATCH “/orders/2” for 127.0.0.1 at 2022-07-18 19:47:12 -0500 Processing by OrdersController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"2"}
Order Load (2.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:51:in `set_order'
TRANSACTION (0.2ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.5ms)  UPDATE "orders" SET "date" = $1, "status" = $2, "updated_at" = $3 WHERE "orders"."id" = $4  [["date", "2022-07-18"], ["status", 1], ["updated_at", "2022-07-19 00:47:12.264953"], ["id", 2]]
↳ app/controllers/orders_controller.rb:34:in `update'
TRANSACTION (2.0ms)  COMMIT
↳ app/controllers/orders_controller.rb:34:in `update'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:56:in `block in update_stock'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/orders_controller.rb:59:in `block in update_stock'
Product Update (1.1ms)  UPDATE "products" SET "stock" = $1, "updated_at" = $2 WHERE "products"."id" = $3  [["stock", 22], ["updated_at", "2022-07-19 00:47:12.274938"], ["id", 2]]
↳ app/controllers/orders_controller.rb:59:in `block in update_stock'
TRANSACTION (1.1ms)  COMMIT
↳ app/controllers/orders_controller.rb:59:in `block in update_stock'

Redirected to localhost:3000/products Completed 302 Found in 34ms (ActiveRecord: 8.3ms | Allocations: 8182)

Started GET “/products” for 127.0.0.1 at 2022-07-18 19:47:12 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 24.5ms | Allocations: 12819)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 26.1ms | Allocations: 10325)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2844)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2636)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.0ms | Allocations: 5114)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Rendered products/index.html.erb within layouts/application (Duration: 274.2ms | Allocations: 89458)
Rendered layout layouts/application.html.erb (Duration: 291.8ms | Allocations: 97418)

Completed 200 OK in 299ms (Views: 267.1ms | ActiveRecord: 26.7ms | Allocations: 99914)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:47:13 -0500 Processing by OrdersController#index as HTML

User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (3.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 2.9ms | Allocations: 878)
OrderLine Load (0.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (2.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 13.9ms | Allocations: 1735)
Rendered orders/index.html.erb within layouts/application (Duration: 26.2ms | Allocations: 3443)
Rendered layout layouts/application.html.erb (Duration: 45.1ms | Allocations: 11151)

Completed 200 OK in 59ms (Views: 41.5ms | ActiveRecord: 7.9ms | Allocations: 12522)

Started GET “/orders/2” for 127.0.0.1 at 2022-07-18 19:47:14 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (0.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (1.9ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 16.5ms | Allocations: 1695)
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/show.html.erb:4
Rendered comments/_form.html.erb (Duration: 6.4ms | Allocations: 778)
Comment Load (0.6ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 2], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 5.9ms | Allocations: 932)
Rendered orders/show.html.erb within layouts/application (Duration: 39.6ms | Allocations: 4644)
Rendered layout layouts/application.html.erb (Duration: 59.4ms | Allocations: 12341)

Completed 200 OK in 66ms (Views: 57.6ms | ActiveRecord: 4.0ms | Allocations: 13147)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:47:16 -0500 Processing by OrdersController#index as HTML

User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (1.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (2.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 10.1ms | Allocations: 872)
OrderLine Load (0.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 17.2ms | Allocations: 1732)
Rendered orders/index.html.erb within layouts/application (Duration: 39.2ms | Allocations: 3423)
Rendered layout layouts/application.html.erb (Duration: 76.4ms | Allocations: 11129)

Completed 200 OK in 92ms (Views: 79.3ms | ActiveRecord: 5.4ms | Allocations: 12394)

Started GET “/orders/2” for 127.0.0.1 at 2022-07-18 19:47:17 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 9.6ms | Allocations: 1695)
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/show.html.erb:4
Rendered comments/_form.html.erb (Duration: 5.8ms | Allocations: 764)
Comment Load (1.9ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 2], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 11.0ms | Allocations: 910)
Rendered orders/show.html.erb within layouts/application (Duration: 35.8ms | Allocations: 4619)
Rendered layout layouts/application.html.erb (Duration: 65.5ms | Allocations: 12316)

Completed 200 OK in 74ms (Views: 63.3ms | ActiveRecord: 3.3ms | Allocations: 13112)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:47:18 -0500 Processing by OrdersController#index as HTML

User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (1.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (1.1ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 7.3ms | Allocations: 872)
OrderLine Load (0.9ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 13.6ms | Allocations: 1732)
Rendered orders/index.html.erb within layouts/application (Duration: 29.3ms | Allocations: 3423)
Rendered layout layouts/application.html.erb (Duration: 47.7ms | Allocations: 11129)

Completed 200 OK in 59ms (Views: 45.1ms | ActiveRecord: 4.1ms | Allocations: 12427)

Started GET “/orders/1” for 127.0.0.1 at 2022-07-18 19:47:18 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 7.0ms | Allocations: 828)
User Load (1.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/show.html.erb:4
Rendered comments/_form.html.erb (Duration: 5.1ms | Allocations: 764)
Comment Load (1.2ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 1], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 4.8ms | Allocations: 910)
Rendered orders/show.html.erb within layouts/application (Duration: 26.5ms | Allocations: 3749)
Rendered layout layouts/application.html.erb (Duration: 45.9ms | Allocations: 11446)

Completed 200 OK in 51ms (Views: 44.4ms | ActiveRecord: 3.1ms | Allocations: 12243)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:47:19 -0500 Processing by OrdersController#index as HTML

User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (1.9ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (1.1ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 4.4ms | Allocations: 872)
OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 10.9ms | Allocations: 1732)
Rendered orders/index.html.erb within layouts/application (Duration: 21.8ms | Allocations: 3423)
Rendered layout layouts/application.html.erb (Duration: 47.9ms | Allocations: 11129)

Completed 200 OK in 61ms (Views: 45.5ms | ActiveRecord: 4.3ms | Allocations: 12391)

Started GET “/orders/1” for 127.0.0.1 at 2022-07-18 19:47:27 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 6.4ms | Allocations: 828)
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/show.html.erb:4
Rendered comments/_form.html.erb (Duration: 1.8ms | Allocations: 764)
Comment Load (1.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 1], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 7.3ms | Allocations: 910)
Rendered orders/show.html.erb within layouts/application (Duration: 46.8ms | Allocations: 3761)
Rendered layout layouts/application.html.erb (Duration: 82.0ms | Allocations: 11515)

Completed 200 OK in 86ms (Views: 80.0ms | ActiveRecord: 2.7ms | Allocations: 12312)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:47:28 -0500 Processing by OrdersController#index as HTML

User Load (3.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (0.8ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 5.2ms | Allocations: 872)
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 6.3ms | Allocations: 1732)
Rendered orders/index.html.erb within layouts/application (Duration: 15.1ms | Allocations: 3423)
Rendered layout layouts/application.html.erb (Duration: 45.1ms | Allocations: 11185)

Completed 200 OK in 60ms (Views: 44.0ms | ActiveRecord: 4.8ms | Allocations: 12451)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 19:47:29 -0500 Processing by OrdersController#cart as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendered orders/cart.html.erb within layouts/application (Duration: 4.0ms | Allocations: 644)
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 27.0ms | Allocations: 9159)

Completed 200 OK in 37ms (Views: 27.7ms | ActiveRecord: 0.6ms | Allocations: 10926)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:47:35 -0500 Processing by OrdersController#index as HTML

User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 2.8ms | Allocations: 872)
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 10.0ms | Allocations: 1732)
Rendered orders/index.html.erb within layouts/application (Duration: 17.6ms | Allocations: 3423)
Rendered layout layouts/application.html.erb (Duration: 36.9ms | Allocations: 11129)

Completed 200 OK in 50ms (Views: 38.2ms | ActiveRecord: 1.8ms | Allocations: 12403)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:48:49 -0500 Processing by OrdersController#index as HTML

User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (1.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 13.8ms | Allocations: 4459)
OrderLine Load (0.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 44.7ms | Allocations: 10814)
Rendered orders/index.html.erb within layouts/application (Duration: 69.8ms | Allocations: 17558)
Rendered layout layouts/application.html.erb (Duration: 127.8ms | Allocations: 40410)

Completed 200 OK in 173ms (Views: 117.2ms | ActiveRecord: 19.1ms | Allocations: 49218)

Started GET “/orders/2” for 127.0.0.1 at 2022-07-18 19:48:50 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:51:in `set_order'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (1.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 16.5ms | Allocations: 1893)
Rendered comments/_form.html.erb (Duration: 13.5ms | Allocations: 3204)
Comment Load (0.2ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 2], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 9.2ms | Allocations: 1981)
Rendered orders/show.html.erb within layouts/application (Duration: 48.2ms | Allocations: 8483)
Rendered layout layouts/application.html.erb (Duration: 68.1ms | Allocations: 16304)

Completed 200 OK in 95ms (Views: 66.2ms | ActiveRecord: 7.4ms | Allocations: 19305)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:48:51 -0500 Processing by OrdersController#index as HTML

User Load (1.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 6.5ms | Allocations: 894)
OrderLine Load (1.8ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 15.6ms | Allocations: 1736)
Rendered orders/index.html.erb within layouts/application (Duration: 29.7ms | Allocations: 3449)
Rendered layout layouts/application.html.erb (Duration: 49.9ms | Allocations: 11157)

Completed 200 OK in 61ms (Views: 49.0ms | ActiveRecord: 3.9ms | Allocations: 12532)

Started GET “/orders/1” for 127.0.0.1 at 2022-07-18 19:48:52 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"1"}
Order Load (1.9ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:51:in `set_order'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (1.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 7.8ms | Allocations: 828)
Rendered comments/_form.html.erb (Duration: 1.5ms | Allocations: 764)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 1], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 9.4ms | Allocations: 913)
Rendered orders/show.html.erb within layouts/application (Duration: 19.5ms | Allocations: 2774)
Rendered layout layouts/application.html.erb (Duration: 34.8ms | Allocations: 10471)

Completed 200 OK in 49ms (Views: 36.0ms | ActiveRecord: 4.3ms | Allocations: 12239)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:48:53 -0500 Processing by OrdersController#index as HTML

User Load (2.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (0.8ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 10.6ms | Allocations: 872)
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 19.1ms | Allocations: 1732)
Rendered orders/index.html.erb within layouts/application (Duration: 35.1ms | Allocations: 3423)
Rendered layout layouts/application.html.erb (Duration: 78.0ms | Allocations: 11129)

Completed 200 OK in 100ms (Views: 76.8ms | ActiveRecord: 5.0ms | Allocations: 12386)

Started GET “/orders/2” for 127.0.0.1 at 2022-07-18 19:48:53 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
User Load (3.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:51:in `set_order'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (0.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (4.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 15.4ms | Allocations: 1695)
Rendered comments/_form.html.erb (Duration: 10.4ms | Allocations: 764)
Comment Load (1.6ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 2], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 6.8ms | Allocations: 910)
Rendered orders/show.html.erb within layouts/application (Duration: 34.0ms | Allocations: 3636)
Rendered layout layouts/application.html.erb (Duration: 86.5ms | Allocations: 11333)

Completed 200 OK in 103ms (Views: 86.1ms | ActiveRecord: 10.3ms | Allocations: 13101)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:48:54 -0500 Processing by OrdersController#index as HTML

User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (11.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (4.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 7.2ms | Allocations: 872)
OrderLine Load (1.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (1.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 20.7ms | Allocations: 1732)
Rendered orders/index.html.erb within layouts/application (Duration: 46.9ms | Allocations: 3423)
Rendered layout layouts/application.html.erb (Duration: 86.5ms | Allocations: 11185)

Completed 200 OK in 94ms (Views: 69.5ms | ActiveRecord: 19.0ms | Allocations: 12460)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:49:05 -0500 Processing by OrdersController#index as HTML

User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 14.5ms | Allocations: 4487)
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 38.2ms | Allocations: 10794)
Rendered orders/index.html.erb within layouts/application (Duration: 70.2ms | Allocations: 17566)
Rendered layout layouts/application.html.erb (Duration: 107.5ms | Allocations: 40418)

Completed 200 OK in 155ms (Views: 102.1ms | ActiveRecord: 17.9ms | Allocations: 49180)

Started GET “/orders/2” for 127.0.0.1 at 2022-07-18 19:49:06 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"2"}
Order Load (0.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:50:in `set_order'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (2.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.8ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 15.1ms | Allocations: 1893)
Rendered comments/_form.html.erb (Duration: 13.9ms | Allocations: 3204)
Comment Load (0.8ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 2], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 8.3ms | Allocations: 1982)
Rendered orders/show.html.erb within layouts/application (Duration: 45.3ms | Allocations: 8480)
Rendered layout layouts/application.html.erb (Duration: 66.4ms | Allocations: 16316)

Completed 200 OK in 87ms (Views: 64.6ms | ActiveRecord: 8.6ms | Allocations: 19310)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:49:07 -0500 Processing by OrdersController#index as HTML

User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (0.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (0.6ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 12.2ms | Allocations: 894)
OrderLine Load (0.9ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.9ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 11.2ms | Allocations: 1736)
Rendered orders/index.html.erb within layouts/application (Duration: 27.7ms | Allocations: 3450)
Rendered layout layouts/application.html.erb (Duration: 56.4ms | Allocations: 11167)

Completed 200 OK in 65ms (Views: 55.4ms | ActiveRecord: 3.4ms | Allocations: 12549)

Started GET “/orders/1” for 127.0.0.1 at 2022-07-18 19:49:07 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.9ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
User Load (2.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:50:in `set_order'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (0.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 4.5ms | Allocations: 828)
Rendered comments/_form.html.erb (Duration: 1.2ms | Allocations: 764)
Comment Load (3.7ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 1], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 8.9ms | Allocations: 913)
Rendered orders/show.html.erb within layouts/application (Duration: 17.6ms | Allocations: 2774)
Rendered layout layouts/application.html.erb (Duration: 48.5ms | Allocations: 10471)

Completed 200 OK in 61ms (Views: 44.7ms | ActiveRecord: 7.3ms | Allocations: 12256)

Started GET “/orders” for 127.0.0.1 at 2022-07-18 19:49:08 -0500 Processing by OrdersController#index as HTML

User Load (3.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (1.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (1.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 3.7ms | Allocations: 872)
OrderLine Load (2.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 11.0ms | Allocations: 1732)
Rendered orders/index.html.erb within layouts/application (Duration: 19.5ms | Allocations: 3423)
Rendered layout layouts/application.html.erb (Duration: 40.8ms | Allocations: 11129)

Completed 200 OK in 61ms (Views: 39.5ms | ActiveRecord: 8.2ms | Allocations: 12394)

Started GET “/orders/1” for 127.0.0.1 at 2022-07-18 19:50:47 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:50:in `set_order'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (1.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 4.8ms | Allocations: 828)
Rendered comments/_form.html.erb (Duration: 5.1ms | Allocations: 764)
Comment Load (1.0ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 1], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 5.1ms | Allocations: 910)
Rendered orders/show.html.erb within layouts/application (Duration: 21.5ms | Allocations: 2769)
Rendered layout layouts/application.html.erb (Duration: 54.3ms | Allocations: 10466)

Completed 200 OK in 72ms (Views: 52.7ms | ActiveRecord: 2.8ms | Allocations: 12233)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:50:48 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 30.5ms | Allocations: 12779)
Product Exists? (3.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.0ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 43.8ms | Allocations: 10458)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2853)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 2636)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 19.4ms | Allocations: 5130)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2603)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 2635)
Rendered products/index.html.erb within layouts/application (Duration: 322.3ms | Allocations: 89602)
Rendered layout layouts/application.html.erb (Duration: 343.7ms | Allocations: 97563)

Completed 200 OK in 365ms (Views: 315.7ms | ActiveRecord: 30.6ms | Allocations: 100122)

Started POST “/products/6/likes” for 127.0.0.1 at 2022-07-18 19:50:49 -0500 Processing by LikesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"6"}
Product Load (1.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:7:in `create'
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:8:in `create'
TRANSACTION (2.3ms)  BEGIN
↳ app/controllers/likes_controller.rb:9:in `create'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:9:in `create'
Like Exists? (3.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 6], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:9:in `create'
Like Create (35.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 6], ["created_at", "2022-07-19 00:50:49.486544"], ["updated_at", "2022-07-19 00:50:49.486544"]]
↳ app/controllers/likes_controller.rb:9:in `create'
Product Update All (9.8ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 6]]
↳ app/controllers/likes_controller.rb:9:in `create'
TRANSACTION (24.0ms)  COMMIT
↳ app/controllers/likes_controller.rb:9:in `create'

Redirected to localhost:3000/ Completed 302 Found in 113ms (ActiveRecord: 76.9ms | Allocations: 10001)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:50:49 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.6ms | Allocations: 8627)
Product Exists? (0.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 3554)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2635)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 2635)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 2707)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2635)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 3425)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 275.9ms | Allocations: 77190)
Rendered layout layouts/application.html.erb (Duration: 302.8ms | Allocations: 85045)

Completed 200 OK in 314ms (Views: 272.5ms | ActiveRecord: 31.2ms | Allocations: 86467)

Started DELETE “/likes/13” for 127.0.0.1 at 2022-07-18 19:50:52 -0500 Processing by LikesController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"13"}
Like Load (0.7ms)  SELECT "likes".* FROM "likes" WHERE "likes"."id" = $1 LIMIT $2  [["id", 13], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:16:in `destroy'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:17:in `destroy'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/likes_controller.rb:18:in `destroy'
Like Destroy (0.3ms)  DELETE FROM "likes" WHERE "likes"."id" = $1  [["id", 13]]
↳ app/controllers/likes_controller.rb:18:in `destroy'
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) - $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 6]]
↳ app/controllers/likes_controller.rb:18:in `destroy'
TRANSACTION (2.6ms)  COMMIT
↳ app/controllers/likes_controller.rb:18:in `destroy'

Redirected to localhost:3000/ Completed 302 Found in 25ms (ActiveRecord: 4.5ms | Allocations: 4870)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:50:52 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 25.8ms | Allocations: 8566)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.2ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 3472)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 2635)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 2635)
Tag Load (3.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2707)
Tag Load (3.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2635)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2635)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2635)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 3425)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2603)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2603)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2603)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2603)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2605)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2603)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2635)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2635)
Rendered products/index.html.erb within layouts/application (Duration: 295.5ms | Allocations: 76242)
Rendered layout layouts/application.html.erb (Duration: 311.2ms | Allocations: 83997)

Completed 200 OK in 317ms (Views: 260.2ms | ActiveRecord: 52.9ms | Allocations: 85349)

Started POST “/products/6/likes” for 127.0.0.1 at 2022-07-18 19:50:54 -0500 Processing by LikesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"6"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:7:in `create'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:8:in `create'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/likes_controller.rb:9:in `create'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:9:in `create'
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 6], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:9:in `create'
Like Create (0.7ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 6], ["created_at", "2022-07-19 00:50:54.664257"], ["updated_at", "2022-07-19 00:50:54.664257"]]
↳ app/controllers/likes_controller.rb:9:in `create'
Product Update All (0.5ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 6]]
↳ app/controllers/likes_controller.rb:9:in `create'
TRANSACTION (1.4ms)  COMMIT
↳ app/controllers/likes_controller.rb:9:in `create'

Redirected to localhost:3000/ Completed 302 Found in 50ms (ActiveRecord: 4.7ms | Allocations: 6634)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:50:54 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.8ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 13.6ms | Allocations: 8568)
Product Exists? (1.9ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 3472)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (4.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 2635)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2635)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.7ms | Allocations: 2635)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (5.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 3425)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 21.7ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 2605)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 17.9ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 333.6ms | Allocations: 77038)
Rendered layout layouts/application.html.erb (Duration: 352.4ms | Allocations: 84760)

Completed 200 OK in 358ms (Views: 309.2ms | ActiveRecord: 44.7ms | Allocations: 86119)

Started POST “/products/36/likes” for 127.0.0.1 at 2022-07-18 19:50:58 -0500 Processing by LikesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"36"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 36], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:7:in `create'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:8:in `create'
TRANSACTION (1.5ms)  BEGIN
↳ app/controllers/likes_controller.rb:9:in `create'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:9:in `create'
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 36], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:9:in `create'
Like Create (0.5ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 36], ["created_at", "2022-07-19 00:50:58.846967"], ["updated_at", "2022-07-19 00:50:58.846967"]]
↳ app/controllers/likes_controller.rb:9:in `create'
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 36]]
↳ app/controllers/likes_controller.rb:9:in `create'
TRANSACTION (1.9ms)  COMMIT
↳ app/controllers/likes_controller.rb:9:in `create'

Redirected to localhost:3000/ Completed 302 Found in 27ms (ActiveRecord: 5.4ms | Allocations: 6614)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:50:58 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 16.6ms | Allocations: 8568)
Product Exists? (0.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 3472)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2635)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2635)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2635)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2707)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 3425)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2603)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2603)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2603)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.7ms | Allocations: 2603)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.4ms | Allocations: 2605)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 2629)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.1ms | Allocations: 2603)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2635)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (2.8ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 22.4ms | Allocations: 3429)
Tag Load (3.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (1.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 24.7ms | Allocations: 3397)
Rendered products/index.html.erb within layouts/application (Duration: 355.9ms | Allocations: 77858)
Rendered layout layouts/application.html.erb (Duration: 375.7ms | Allocations: 85611)

Completed 200 OK in 384ms (Views: 326.0ms | ActiveRecord: 52.4ms | Allocations: 86990)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:53:50 -0500 Processing by ProductsController#index as HTML

Order Load (1.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 47.3ms | Allocations: 12765)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 65.4ms | Allocations: 13873)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.7ms | Allocations: 2853)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 2635)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 29.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 2635)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.8ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2707)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.6ms | Allocations: 2640)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 28.6ms | Allocations: 5132)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.8ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.7ms | Allocations: 2603)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.3ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.0ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.9ms | Allocations: 2605)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 2603)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 3429)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 3397)
Rendered products/index.html.erb within layouts/application (Duration: 540.1ms | Allocations: 96495)
Rendered layout layouts/application.html.erb (Duration: 582.5ms | Allocations: 119303)

Completed 200 OK in 678ms (Views: 535.2ms | ActiveRecord: 65.8ms | Allocations: 133732)

Started DELETE “/likes/14” for 127.0.0.1 at 2022-07-18 19:53:55 -0500 Processing by LikesController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"14"}
Like Load (1.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."id" = $1 LIMIT $2  [["id", 14], ["LIMIT", 1]]
↳ app/services/likes/like_finder_service.rb:7:in `call'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:17:in `destroy'

Completed 500 Internal Server Error in 24ms (ActiveRecord: 1.6ms | Allocations: 5577)

NameError (uninitialized constant LikesController::LikeDestroyService

LikeDestroyService.call(like)
^^^^^^^^^^^^^^^^^^):

app/controllers/likes_controller.rb:18:in ‘destroy’ Started GET “/orders/1” for 127.0.0.1 at 2022-07-18 19:54:00 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
User Load (2.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:50:in `set_order'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 12.7ms | Allocations: 1953)
Rendered comments/_form.html.erb (Duration: 29.2ms | Allocations: 3278)
Comment Load (0.2ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 1], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 13.0ms | Allocations: 1917)
Rendered orders/show.html.erb within layouts/application (Duration: 66.0ms | Allocations: 8556)
Rendered layout layouts/application.html.erb (Duration: 92.3ms | Allocations: 16530)

Completed 200 OK in 118ms (Views: 92.8ms | ActiveRecord: 8.7ms | Allocations: 19951)

Started GET “/orders/1” for 127.0.0.1 at 2022-07-18 19:54:00 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"1"}
Order Load (1.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
User Load (2.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:50:in `set_order'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (1.1ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 3.9ms | Allocations: 849)
Rendered comments/_form.html.erb (Duration: 1.6ms | Allocations: 764)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 1], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 12.5ms | Allocations: 913)
Rendered orders/show.html.erb within layouts/application (Duration: 19.0ms | Allocations: 2777)
Rendered layout layouts/application.html.erb (Duration: 44.9ms | Allocations: 10475)

Completed 200 OK in 63ms (Views: 44.9ms | ActiveRecord: 4.8ms | Allocations: 12358)

Started GET “/orders/1” for 127.0.0.1 at 2022-07-18 19:54:08 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"1"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:50:in `set_order'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 15.7ms | Allocations: 4329)
Rendered comments/_form.html.erb (Duration: 20.4ms | Allocations: 3222)
Comment Load (0.7ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 1], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 9.6ms | Allocations: 1921)
Rendered orders/show.html.erb within layouts/application (Duration: 57.1ms | Allocations: 10851)
Rendered layout layouts/application.html.erb (Duration: 121.6ms | Allocations: 33664)

Completed 200 OK in 208ms (Views: 117.8ms | ActiveRecord: 19.4ms | Allocations: 44777)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:54:09 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (3.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 27.3ms | Allocations: 12770)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 47.1ms | Allocations: 10464)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 2853)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 2635)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (5.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2635)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2635)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 24.4ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 22.6ms | Allocations: 5132)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 2603)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.2ms | Allocations: 2603)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.1ms | Allocations: 2603)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.6ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 3429)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 18.1ms | Allocations: 3397)
Rendered products/index.html.erb within layouts/application (Duration: 432.3ms | Allocations: 93099)
Rendered layout layouts/application.html.erb (Duration: 448.4ms | Allocations: 101060)

Completed 200 OK in 489ms (Views: 386.4ms | ActiveRecord: 72.3ms | Allocations: 108866)

Started DELETE “/likes/15” for 127.0.0.1 at 2022-07-18 19:54:12 -0500 Processing by LikesController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"15"}
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."id" = $1 LIMIT $2  [["id", 15], ["LIMIT", 1]]
↳ app/services/likes/like_finder_service.rb:7:in `call'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:17:in `destroy'
TRANSACTION (0.2ms)  BEGIN
↳ app/services/likes/like_destroy_service.rb:7:in `call'
Like Destroy (0.4ms)  DELETE FROM "likes" WHERE "likes"."id" = $1  [["id", 15]]
↳ app/services/likes/like_destroy_service.rb:7:in `call'
Product Update All (0.5ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) - $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 36]]
↳ app/services/likes/like_destroy_service.rb:7:in `call'
TRANSACTION (15.4ms)  COMMIT
↳ app/services/likes/like_destroy_service.rb:7:in `call'

Redirected to localhost:3000/ Completed 302 Found in 37ms (ActiveRecord: 16.9ms | Allocations: 5479)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:54:12 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (1.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.8ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.9ms | Allocations: 8631)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 3586)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2636)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2635)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 2635)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 3425)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2603)
Rendered products/index.html.erb within layouts/application (Duration: 258.1ms | Allocations: 77236)
Rendered layout layouts/application.html.erb (Duration: 270.7ms | Allocations: 85092)

Completed 200 OK in 282ms (Views: 242.9ms | ActiveRecord: 29.7ms | Allocations: 86628)

Started POST “/products/36/likes” for 127.0.0.1 at 2022-07-18 19:54:14 -0500 Processing by LikesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"36"}
Product Load (1.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 36], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:7:in `create'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:8:in `create'
TRANSACTION (1.0ms)  BEGIN
↳ app/controllers/likes_controller.rb:9:in `create'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:9:in `create'
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 36], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:9:in `create'
Like Create (0.7ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 36], ["created_at", "2022-07-19 00:54:14.949350"], ["updated_at", "2022-07-19 00:54:14.949350"]]
↳ app/controllers/likes_controller.rb:9:in `create'
Product Update All (2.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 36]]
↳ app/controllers/likes_controller.rb:9:in `create'
TRANSACTION (2.0ms)  COMMIT
↳ app/controllers/likes_controller.rb:9:in `create'

Redirected to localhost:3000/ Completed 302 Found in 48ms (ActiveRecord: 8.2ms | Allocations: 8830)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:54:14 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.0ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.9ms | Allocations: 8566)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.7ms | Allocations: 3472)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.0ms | Allocations: 2635)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 3425)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 3429)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 3397)
Rendered products/index.html.erb within layouts/application (Duration: 239.2ms | Allocations: 77830)
Rendered layout layouts/application.html.erb (Duration: 257.9ms | Allocations: 85585)

Completed 200 OK in 262ms (Views: 236.3ms | ActiveRecord: 22.6ms | Allocations: 86934)

Started DELETE “/likes/16” for 127.0.0.1 at 2022-07-18 19:54:16 -0500 Processing by LikesController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"16"}
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."id" = $1 LIMIT $2  [["id", 16], ["LIMIT", 1]]
↳ app/services/likes/like_finder_service.rb:7:in `call'
User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:17:in `destroy'
TRANSACTION (1.2ms)  BEGIN
↳ app/services/likes/like_destroy_service.rb:7:in `call'
Like Destroy (0.3ms)  DELETE FROM "likes" WHERE "likes"."id" = $1  [["id", 16]]
↳ app/services/likes/like_destroy_service.rb:7:in `call'
Product Update All (1.5ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) - $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 36]]
↳ app/services/likes/like_destroy_service.rb:7:in `call'
TRANSACTION (1.5ms)  COMMIT
↳ app/services/likes/like_destroy_service.rb:7:in `call'

Redirected to localhost:3000/ Completed 302 Found in 26ms (ActiveRecord: 4.9ms | Allocations: 3803)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:54:16 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.9ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 20.2ms | Allocations: 8569)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (5.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 3472)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2707)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 3425)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 3429)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2603)
Rendered products/index.html.erb within layouts/application (Duration: 289.3ms | Allocations: 77040)
Rendered layout layouts/application.html.erb (Duration: 304.0ms | Allocations: 84785)

Completed 200 OK in 314ms (Views: 279.7ms | ActiveRecord: 27.2ms | Allocations: 86133)

Started DELETE “/likes/14” for 127.0.0.1 at 2022-07-18 19:54:19 -0500 Processing by LikesController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"14"}
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."id" = $1 LIMIT $2  [["id", 14], ["LIMIT", 1]]
↳ app/services/likes/like_finder_service.rb:7:in `call'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:17:in `destroy'
TRANSACTION (0.3ms)  BEGIN
↳ app/services/likes/like_destroy_service.rb:7:in `call'
Like Destroy (0.4ms)  DELETE FROM "likes" WHERE "likes"."id" = $1  [["id", 14]]
↳ app/services/likes/like_destroy_service.rb:7:in `call'
Product Update All (0.5ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) - $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 6]]
↳ app/services/likes/like_destroy_service.rb:7:in `call'
TRANSACTION (1.1ms)  COMMIT
↳ app/services/likes/like_destroy_service.rb:7:in `call'

Redirected to localhost:3000/ Completed 302 Found in 30ms (ActiveRecord: 2.7ms | Allocations: 3810)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:54:19 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.0ms | Allocations: 8568)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 3474)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2636)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 29.4ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.7ms | Allocations: 3425)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2635)
Rendered products/index.html.erb within layouts/application (Duration: 324.3ms | Allocations: 76248)
Rendered layout layouts/application.html.erb (Duration: 343.1ms | Allocations: 84004)

Completed 200 OK in 353ms (Views: 326.4ms | ActiveRecord: 20.7ms | Allocations: 85362)

Started POST “/products/6/likes” for 127.0.0.1 at 2022-07-18 19:54:22 -0500 Processing by LikesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"6"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:7:in `create'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:8:in `create'
TRANSACTION (0.3ms)  BEGIN
↳ app/controllers/likes_controller.rb:9:in `create'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:9:in `create'
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 6], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:9:in `create'
Like Create (0.8ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 6], ["created_at", "2022-07-19 00:54:22.093565"], ["updated_at", "2022-07-19 00:54:22.093565"]]
↳ app/controllers/likes_controller.rb:9:in `create'
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 6]]
↳ app/controllers/likes_controller.rb:9:in `create'
TRANSACTION (1.4ms)  COMMIT
↳ app/controllers/likes_controller.rb:9:in `create'

Redirected to localhost:3000/ Completed 302 Found in 55ms (ActiveRecord: 4.6ms | Allocations: 6634)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:54:22 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.3ms | Allocations: 8569)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 3472)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 3425)
Tag Load (3.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 286.6ms | Allocations: 77039)
Rendered layout layouts/application.html.erb (Duration: 303.2ms | Allocations: 84793)

Completed 200 OK in 310ms (Views: 284.9ms | ActiveRecord: 19.9ms | Allocations: 86147)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:55:55 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 39.4ms | Allocations: 12777)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.0ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 81.6ms | Allocations: 13906)
Tag Load (7.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 2853)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.9ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 2635)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.2ms | Allocations: 2707)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.2ms | Allocations: 5113)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 2603)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (1.9ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 20.0ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 448.1ms | Allocations: 95727)
Rendered layout layouts/application.html.erb (Duration: 505.6ms | Allocations: 118529)

Completed 200 OK in 588ms (Views: 445.0ms | ActiveRecord: 72.5ms | Allocations: 132973)

Started DELETE “/likes/17” for 127.0.0.1 at 2022-07-18 19:55:57 -0500 Processing by LikesController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"17"}

Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.0ms | Allocations: 4583)

NameError (undefined local variable or method ‘like’ for #<LikesController:0x000000000ca828>

Likes::LikeDestroyService.call(like)
                               ^^^^):

app/controllers/likes_controller.rb:16:in ‘destroy’ Started GET “/” for 127.0.0.1 at 2022-07-18 19:56:06 -0500 Processing by ProductsController#index as HTML

Order Load (1.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 31.3ms | Allocations: 12783)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 58.1ms | Allocations: 13873)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2853)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.1ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.8ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 2707)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 38.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.5ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 21.3ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 55.6ms | Allocations: 5132)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.1ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.7ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.8ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 25.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (2.6ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 22.7ms | Allocations: 3434)
Rendered products/index.html.erb within layouts/application (Duration: 543.9ms | Allocations: 95719)
Rendered layout layouts/application.html.erb (Duration: 585.9ms | Allocations: 118518)

Completed 200 OK in 707ms (Views: 529.7ms | ActiveRecord: 69.6ms | Allocations: 132971)

Started DELETE “/likes/17” for 127.0.0.1 at 2022-07-18 19:56:09 -0500 Processing by LikesController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"17"}

Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms | Allocations: 1793)

NoMethodError (undefined method ‘destroy’ for nil:NilClass

@like.destroy
     ^^^^^^^^):

app/services/likes/like_destroy_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/likes_controller.rb:16:in ‘destroy’ Started GET “/” for 127.0.0.1 at 2022-07-18 19:56:11 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 16.1ms | Allocations: 8623)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 30.9ms | Allocations: 3599)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (6.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.2ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2635)
Tag Load (9.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 25.7ms | Allocations: 2635)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2635)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.5ms | Allocations: 2707)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 17.2ms | Allocations: 3425)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2603)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 2603)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2603)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.7ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2603)
Tag Load (3.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2603)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.7ms | Allocations: 2635)
Tag Load (6.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.8ms | Allocations: 2603)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (2.1ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 32.0ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 447.4ms | Allocations: 77231)
Rendered layout layouts/application.html.erb (Duration: 493.1ms | Allocations: 85087)

Completed 200 OK in 508ms (Views: 420.6ms | ActiveRecord: 73.9ms | Allocations: 86691)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:57:12 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 34.2ms | Allocations: 12788)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (2.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 54.7ms | Allocations: 13873)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 2853)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 2635)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.9ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 25.4ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.6ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.3ms | Allocations: 2707)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 17.0ms | Allocations: 5112)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2605)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 452.1ms | Allocations: 95700)
Rendered layout layouts/application.html.erb (Duration: 483.1ms | Allocations: 118443)

Completed 200 OK in 575ms (Views: 432.9ms | ActiveRecord: 72.5ms | Allocations: 132857)

Started DELETE “/likes/17” for 127.0.0.1 at 2022-07-18 19:57:15 -0500 Processing by LikesController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"17"}
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."id" = $1 LIMIT $2  [["id", 17], ["LIMIT", 1]]
↳ app/services/likes/like_finder_service.rb:7:in `call'
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:26:in `set_like'
TRANSACTION (0.2ms)  BEGIN
↳ app/services/likes/like_destroy_service.rb:7:in `call'
Like Destroy (0.4ms)  DELETE FROM "likes" WHERE "likes"."id" = $1  [["id", 17]]
↳ app/services/likes/like_destroy_service.rb:7:in `call'
Product Update All (0.4ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) - $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 6]]
↳ app/services/likes/like_destroy_service.rb:7:in `call'
TRANSACTION (1.3ms)  COMMIT
↳ app/services/likes/like_destroy_service.rb:7:in `call'

Redirected to localhost:3000/ Completed 302 Found in 24ms (ActiveRecord: 3.4ms | Allocations: 5486)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:57:15 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.3ms | Allocations: 8630)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 3586)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2635)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2707)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 3425)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Rendered products/index.html.erb within layouts/application (Duration: 227.4ms | Allocations: 76439)
Rendered layout layouts/application.html.erb (Duration: 240.6ms | Allocations: 84239)

Completed 200 OK in 247ms (Views: 218.1ms | ActiveRecord: 24.0ms | Allocations: 85775)

Started POST “/products/6/likes” for 127.0.0.1 at 2022-07-18 19:57:17 -0500 Processing by LikesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"6"}
Product Load (1.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:9:in `create'
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:10:in `create'
TRANSACTION (0.5ms)  BEGIN
↳ app/controllers/likes_controller.rb:11:in `create'
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:11:in `create'
Like Exists? (3.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 6], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:11:in `create'
Like Create (0.8ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 6], ["created_at", "2022-07-19 00:57:17.507077"], ["updated_at", "2022-07-19 00:57:17.507077"]]
↳ app/controllers/likes_controller.rb:11:in `create'
Product Update All (1.2ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 6]]
↳ app/controllers/likes_controller.rb:11:in `create'
TRANSACTION (3.5ms)  COMMIT
↳ app/controllers/likes_controller.rb:11:in `create'

Redirected to localhost:3000/ Completed 302 Found in 49ms (ActiveRecord: 11.5ms | Allocations: 8838)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:57:17 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.5ms | Allocations: 8565)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 3472)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2635)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.6ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 3425)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2603)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 297.3ms | Allocations: 77035)
Rendered layout layouts/application.html.erb (Duration: 311.0ms | Allocations: 84732)

Completed 200 OK in 319ms (Views: 289.5ms | ActiveRecord: 23.6ms | Allocations: 86095)

Started DELETE “/likes/18” for 127.0.0.1 at 2022-07-18 19:57:19 -0500 Processing by LikesController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"18"}
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."id" = $1 LIMIT $2  [["id", 18], ["LIMIT", 1]]
↳ app/services/likes/like_finder_service.rb:7:in `call'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:26:in `set_like'
TRANSACTION (0.1ms)  BEGIN
↳ app/services/likes/like_destroy_service.rb:7:in `call'
Like Destroy (0.3ms)  DELETE FROM "likes" WHERE "likes"."id" = $1  [["id", 18]]
↳ app/services/likes/like_destroy_service.rb:7:in `call'
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) - $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 6]]
↳ app/services/likes/like_destroy_service.rb:7:in `call'
TRANSACTION (1.0ms)  COMMIT
↳ app/services/likes/like_destroy_service.rb:7:in `call'

Redirected to localhost:3000/ Completed 302 Found in 16ms (ActiveRecord: 2.1ms | Allocations: 3796)

Started GET “/” for 127.0.0.1 at 2022-07-18 19:57:19 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 7.7ms | Allocations: 8567)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 27.7ms | Allocations: 3472)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2635)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 2635)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 3425)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2605)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2606)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2635)
Rendered products/index.html.erb within layouts/application (Duration: 249.0ms | Allocations: 76246)
Rendered layout layouts/application.html.erb (Duration: 262.0ms | Allocations: 83999)

Completed 200 OK in 267ms (Views: 241.7ms | ActiveRecord: 21.6ms | Allocations: 85381)

Like Load (0.5ms)  SELECT "likes".* FROM "likes" ORDER BY "likes"."id" ASC LIMIT $1  [["LIMIT", 1]]
Like Load (0.4ms)  SELECT "likes".* FROM "likes" ORDER BY "likes"."id" ASC LIMIT $1  [["LIMIT", 1]]
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 10], ["LIMIT", 1]]
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" IS NULL AND "likes"."product_id" IS NULL LIMIT $1  [["LIMIT", 1]]

Started GET “/” for 127.0.0.1 at 2022-07-18 20:02:28 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 39.0ms | Allocations: 12789)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (2.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 50.4ms | Allocations: 13872)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2853)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 2635)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 25.5ms | Allocations: 2708)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.3ms | Allocations: 2635)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 28.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (1.6ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 32.6ms | Allocations: 5112)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 24.2ms | Allocations: 2603)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2603)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2635)
Rendered products/index.html.erb within layouts/application (Duration: 468.2ms | Allocations: 94906)
Rendered layout layouts/application.html.erb (Duration: 504.8ms | Allocations: 117705)

Completed 200 OK in 588ms (Views: 463.0ms | ActiveRecord: 65.3ms | Allocations: 132056)

Started POST “/products/9/likes” for 127.0.0.1 at 2022-07-18 20:02:31 -0500 Processing by LikesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"9"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 9], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:12:in `create'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:13:in `create'
TRANSACTION (0.5ms)  BEGIN
↳ app/controllers/likes_controller.rb:14:in `create'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:14:in `create'
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 9], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:14:in `create'
Like Create (0.6ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 9], ["created_at", "2022-07-19 01:02:31.120454"], ["updated_at", "2022-07-19 01:02:31.120454"]]
↳ app/controllers/likes_controller.rb:14:in `create'
Product Update All (0.8ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 9]]
↳ app/controllers/likes_controller.rb:14:in `create'
TRANSACTION (53.2ms)  COMMIT
↳ app/controllers/likes_controller.rb:14:in `create'

Redirected to localhost:3000/ Completed 302 Found in 96ms (ActiveRecord: 56.7ms | Allocations: 9413)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:02:31 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.2ms | Allocations: 8625)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 3556)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 2635)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 3425)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 287.3ms | Allocations: 77191)
Rendered layout layouts/application.html.erb (Duration: 301.0ms | Allocations: 84990)

Completed 200 OK in 307ms (Views: 285.1ms | ActiveRecord: 17.7ms | Allocations: 86414)

Product Load (0.3ms)  SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
TRANSACTION (0.2ms)  BEGIN
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 39], ["LIMIT", 1]]
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 4], ["product_id", 39], ["LIMIT", 1]]
Like Create (0.8ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 4], ["product_id", 39], ["created_at", "2022-07-19 01:04:32.542313"], ["updated_at", "2022-07-19 01:04:32.542313"]]
Product Update All (0.7ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 39]]
TRANSACTION (1.4ms)  COMMIT

Started GET “/” for 127.0.0.1 at 2022-07-18 20:07:19 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 29.1ms | Allocations: 12790)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 85.7ms | Allocations: 13869)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 24.3ms | Allocations: 2853)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (5.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.5ms | Allocations: 2635)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 46.7ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 2668)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 2635)
Tag Load (5.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 21.0ms | Allocations: 2707)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.4ms | Allocations: 2635)
Tag Load (8.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 21.1ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 29.5ms | Allocations: 5132)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 2603)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 2603)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (5.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 2603)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2605)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 2603)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 20.7ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2602)
Rendered products/index.html.erb within layouts/application (Duration: 568.9ms | Allocations: 95749)
Rendered layout layouts/application.html.erb (Duration: 604.7ms | Allocations: 118556)

Completed 200 OK in 655ms (Views: 518.6ms | ActiveRecord: 95.6ms | Allocations: 132852)

Started POST “/products/7/likes” for 127.0.0.1 at 2022-07-18 20:07:21 -0500 Processing by LikesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"7"}
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:15:in `create'
TRANSACTION (1.3ms)  BEGIN
↳ app/controllers/likes_controller.rb:17:in `create'
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:17:in `create'
Product Load (1.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:17:in `create'
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 7], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:17:in `create'
Like Create (2.1ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 7], ["created_at", "2022-07-19 01:07:21.748873"], ["updated_at", "2022-07-19 01:07:21.748873"]]
↳ app/controllers/likes_controller.rb:17:in `create'
Product Update All (0.6ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 7]]
↳ app/controllers/likes_controller.rb:17:in `create'
TRANSACTION (1.2ms)  COMMIT
↳ app/controllers/likes_controller.rb:17:in `create'

Redirected to localhost:3000/ Completed 302 Found in 47ms (ActiveRecord: 8.9ms | Allocations: 9600)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:07:21 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.0ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 13.7ms | Allocations: 8627)
Product Exists? (1.1ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.3ms | Allocations: 3557)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 2635)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2635)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.1ms | Allocations: 2635)
Tag Load (4.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.8ms | Allocations: 2635)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2635)
Tag Load (6.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 28.7ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 3425)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 3429)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2602)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 314.6ms | Allocations: 77990)
Rendered layout layouts/application.html.erb (Duration: 329.9ms | Allocations: 85829)

Completed 200 OK in 340ms (Views: 277.8ms | ActiveRecord: 53.7ms | Allocations: 87296)

Started DELETE “/likes/21” for 127.0.0.1 at 2022-07-18 20:07:24 -0500 Processing by LikesController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"21"}
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."id" = $1 LIMIT $2  [["id", 21], ["LIMIT", 1]]
↳ app/services/likes/like_finder_service.rb:7:in `call'
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:30:in `set_like'
TRANSACTION (0.4ms)  BEGIN
↳ app/services/likes/like_destroy_service.rb:7:in `call'
Like Destroy (0.5ms)  DELETE FROM "likes" WHERE "likes"."id" = $1  [["id", 21]]
↳ app/services/likes/like_destroy_service.rb:7:in `call'
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) - $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 7]]
↳ app/services/likes/like_destroy_service.rb:7:in `call'
TRANSACTION (10.5ms)  COMMIT
↳ app/services/likes/like_destroy_service.rb:7:in `call'

Redirected to localhost:3000/ Completed 302 Found in 32ms (ActiveRecord: 12.9ms | Allocations: 4980)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:07:24 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.9ms | Allocations: 8631)
Product Exists? (0.8ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.7ms | Allocations: 3586)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2707)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2635)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2636)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 3425)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2603)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2603)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 3429)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2602)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Rendered products/index.html.erb within layouts/application (Duration: 308.9ms | Allocations: 77228)
Rendered layout layouts/application.html.erb (Duration: 322.8ms | Allocations: 85084)

Completed 200 OK in 329ms (Views: 291.3ms | ActiveRecord: 33.4ms | Allocations: 86620)

Started POST “/products/7/likes” for 127.0.0.1 at 2022-07-18 20:07:26 -0500 Processing by LikesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"7"}
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:15:in `create'
TRANSACTION (0.4ms)  BEGIN
↳ app/controllers/likes_controller.rb:17:in `create'
User Load (2.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:17:in `create'
Product Load (2.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:17:in `create'
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 7], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:17:in `create'
Like Create (2.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 7], ["created_at", "2022-07-19 01:07:26.201598"], ["updated_at", "2022-07-19 01:07:26.201598"]]
↳ app/controllers/likes_controller.rb:17:in `create'
Product Update All (1.5ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 7]]
↳ app/controllers/likes_controller.rb:17:in `create'
TRANSACTION (22.0ms)  COMMIT
↳ app/controllers/likes_controller.rb:17:in `create'

Redirected to localhost:3000/ Completed 302 Found in 60ms (ActiveRecord: 31.1ms | Allocations: 6431)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:07:26 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.4ms | Allocations: 8567)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.2ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 3472)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 2635)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 3425)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2603)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2604)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 3429)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2602)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 17.3ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 275.1ms | Allocations: 77831)
Rendered layout layouts/application.html.erb (Duration: 288.2ms | Allocations: 85528)

Completed 200 OK in 295ms (Views: 267.8ms | ActiveRecord: 22.1ms | Allocations: 86861)

Started DELETE “/likes/22” for 127.0.0.1 at 2022-07-18 20:07:27 -0500 Processing by LikesController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"22"}
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."id" = $1 LIMIT $2  [["id", 22], ["LIMIT", 1]]
↳ app/services/likes/like_finder_service.rb:7:in `call'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:30:in `set_like'
TRANSACTION (0.1ms)  BEGIN
↳ app/services/likes/like_destroy_service.rb:7:in `call'
Like Destroy (0.3ms)  DELETE FROM "likes" WHERE "likes"."id" = $1  [["id", 22]]
↳ app/services/likes/like_destroy_service.rb:7:in `call'
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) - $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 7]]
↳ app/services/likes/like_destroy_service.rb:7:in `call'
TRANSACTION (1.1ms)  COMMIT
↳ app/services/likes/like_destroy_service.rb:7:in `call'

Redirected to localhost:3000/ Completed 302 Found in 18ms (ActiveRecord: 2.1ms | Allocations: 3815)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:07:28 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.0ms | Allocations: 8567)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 3472)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 3425)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 21.2ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2602)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2635)
Rendered products/index.html.erb within layouts/application (Duration: 269.9ms | Allocations: 77036)
Rendered layout layouts/application.html.erb (Duration: 283.8ms | Allocations: 84789)

Completed 200 OK in 289ms (Views: 268.8ms | ActiveRecord: 16.4ms | Allocations: 86141)

Started POST “/products/7/likes” for 127.0.0.1 at 2022-07-18 20:07:51 -0500 Processing by LikesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"7"}
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:15:in `create'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/likes_controller.rb:17:in `create'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:17:in `create'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:17:in `create'
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."user_id" = $1 AND "likes"."product_id" = $2 LIMIT $3  [["user_id", 3], ["product_id", 7], ["LIMIT", 1]]
↳ app/controllers/likes_controller.rb:17:in `create'
Like Create (0.4ms)  INSERT INTO "likes" ("user_id", "product_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_id", 3], ["product_id", 7], ["created_at", "2022-07-19 01:07:51.262929"], ["updated_at", "2022-07-19 01:07:51.262929"]]
↳ app/controllers/likes_controller.rb:17:in `create'
Product Update All (0.3ms)  UPDATE "products" SET "likes_count" = COALESCE("likes_count", 0) + $1 WHERE "products"."id" = $2  [["likes_count", 1], ["id", 7]]
↳ app/controllers/likes_controller.rb:17:in `create'
TRANSACTION (8.0ms)  COMMIT
↳ app/controllers/likes_controller.rb:17:in `create'

Redirected to localhost:3000/ Completed 302 Found in 32ms (ActiveRecord: 9.9ms | Allocations: 6373)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:07:51 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.8ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.7ms | Allocations: 8568)
Product Exists? (0.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 3472)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.0ms | Allocations: 2637)
Tag Load (3.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2635)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 2635)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2635)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2707)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2635)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2635)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 20.3ms | Allocations: 3425)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.6ms | Allocations: 2604)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 2603)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.8ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 25.1ms | Allocations: 2603)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 2605)
Tag Load (5.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2602)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 353.7ms | Allocations: 77834)
Rendered layout layouts/application.html.erb (Duration: 368.5ms | Allocations: 85587)

Completed 200 OK in 377ms (Views: 330.6ms | ActiveRecord: 41.0ms | Allocations: 86944)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:14:05 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 36.7ms | Allocations: 15991)
Rendered comments/_form.html.erb (Duration: 13.2ms | Allocations: 3241)
Comment Load (2.7ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 4], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 8.0ms | Allocations: 1949)
Rendered products/show.html.erb within layouts/application (Duration: 67.7ms | Allocations: 22838)
Rendered layout layouts/application.html.erb (Duration: 113.5ms | Allocations: 45631)

Completed 200 OK in 196ms (Views: 110.4ms | ActiveRecord: 16.3ms | Allocations: 65331)

Started POST “/products/4/comments” for 127.0.0.1 at 2022-07-18 20:14:09 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"New ", "rate"=>"2"}, "commit"=>"Add comment", "product_id"=>"4"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:10:in `create'
TRANSACTION (2.0ms)  BEGIN
↳ app/controllers/comments_controller.rb:13:in `create'
Comment Create (14.3ms)  INSERT INTO "comments" ("body", "rate", "user_id", "commentable_type", "commentable_id", "created_at", "updated_at", "approved") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["body", "New "], ["rate", 2], ["user_id", 3], ["commentable_type", "Product"], ["commentable_id", 4], ["created_at", "2022-07-19 01:14:09.076942"], ["updated_at", "2022-07-19 01:14:09.076942"], ["approved", false]]
↳ app/controllers/comments_controller.rb:13:in `create'
TRANSACTION (1.2ms)  COMMIT
↳ app/controllers/comments_controller.rb:13:in `create'

Redirected to localhost:3000/products/4 Completed 302 Found in 38ms (ActiveRecord: 18.1ms | Allocations: 5471)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:14:09 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"4"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.3ms | Allocations: 3576)
Rendered comments/_form.html.erb (Duration: 1.4ms | Allocations: 772)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 4], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 11.4ms | Allocations: 2833)
Rendered products/show.html.erb within layouts/application (Duration: 34.1ms | Allocations: 7460)
Rendered layout layouts/application.html.erb (Duration: 50.8ms | Allocations: 15317)

Completed 200 OK in 64ms (Views: 50.0ms | ActiveRecord: 3.3ms | Allocations: 17280)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:14:10 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (1.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (3.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 26.3ms | Allocations: 3435)
Rendered comments/_form.html.erb (Duration: 1.6ms | Allocations: 763)
Comment Load (0.6ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 4], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 19.5ms | Allocations: 1753)
Rendered products/show.html.erb within layouts/application (Duration: 50.3ms | Allocations: 6218)
Rendered layout layouts/application.html.erb (Duration: 83.0ms | Allocations: 13915)

Completed 200 OK in 100ms (Views: 79.4ms | ActiveRecord: 9.8ms | Allocations: 15733)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:14:12 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 27.5ms | Allocations: 9751)
Product Exists? (1.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.6ms | Allocations: 3661)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2635)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 2635)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 5068)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2602)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 251.6ms | Allocations: 81016)
Rendered layout layouts/application.html.erb (Duration: 265.7ms | Allocations: 88823)

Completed 200 OK in 277ms (Views: 245.0ms | ActiveRecord: 22.8ms | Allocations: 90454)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:14:13 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.5ms | Allocations: 3435)
Rendered comments/_form.html.erb (Duration: 2.9ms | Allocations: 772)
Comment Load (0.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 4], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 13.5ms | Allocations: 1799)
Rendered products/show.html.erb within layouts/application (Duration: 41.4ms | Allocations: 6281)
Rendered layout layouts/application.html.erb (Duration: 69.6ms | Allocations: 13978)

Completed 200 OK in 87ms (Views: 68.3ms | ActiveRecord: 4.0ms | Allocations: 15874)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:19:15 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 96.4ms | Allocations: 17057)
Rendered comments/_form.html.erb (Duration: 30.4ms | Allocations: 3165)
Comment Load (0.7ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 4], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 31.1ms | Allocations: 4283)
Rendered products/show.html.erb within layouts/application (Duration: 163.5ms | Allocations: 25896)
Rendered layout layouts/application.html.erb (Duration: 226.8ms | Allocations: 48701)

Completed 200 OK in 323ms (Views: 194.4ms | ActiveRecord: 52.6ms | Allocations: 66046)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 20:19:17 -0500 Processing by OrdersController#cart as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
CACHE Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendered orders/cart.html.erb within layouts/application (Duration: 6.0ms | Allocations: 793)
User Load (1.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 48.0ms | Allocations: 9674)

Completed 200 OK in 73ms (Views: 52.6ms | ActiveRecord: 2.2ms | Allocations: 12054)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:19:18 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 22.8ms | Allocations: 9759)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 21.2ms | Allocations: 3669)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 2635)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2635)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 23.8ms | Allocations: 5110)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2602)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 293.6ms | Allocations: 81074)
Rendered layout layouts/application.html.erb (Duration: 313.7ms | Allocations: 88937)

Completed 200 OK in 343ms (Views: 285.7ms | ActiveRecord: 30.3ms | Allocations: 90644)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-18 20:19:20 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"8", "quantity"=>"3"}, "commit"=>"Add to Cart"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:54:in `new_or_existing_product'
TRANSACTION (0.7ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
Order Create (0.4ms)  INSERT INTO "orders" ("date", "user_id", "total", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["date", nil], ["user_id", nil], ["total", "19.5"], ["status", 0], ["created_at", "2022-07-19 01:19:20.192687"], ["updated_at", "2022-07-19 01:19:20.192687"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Create (0.7ms)  INSERT INTO "order_lines" ("order_id", "product_id", "quantity", "total", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["order_id", 3], ["product_id", 8], ["quantity", 3], ["total", "19.5"], ["created_at", "2022-07-19 01:19:20.197919"], ["updated_at", "2022-07-19 01:19:20.197919"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (1.6ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 36ms (ActiveRecord: 4.8ms | Allocations: 9258)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 20:19:20 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 3]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (3.2ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 24.5ms | Allocations: 6211)
Rendered layout layouts/application.html.erb (Duration: 39.6ms | Allocations: 14067)

Completed 200 OK in 52ms (Views: 36.6ms | ActiveRecord: 4.5ms | Allocations: 17027)

Started DELETE “/order_lines/5” for 127.0.0.1 at 2022-07-18 20:19:21 -0500 Processing by OrderLinesController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"5"}
Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'

Completed 500 Internal Server Error in 28ms (ActiveRecord: 0.7ms | Allocations: 4849)

NameError (uninitialized constant OrderLine::OrderLineFinderService

@order_line = authorize OrderLine::OrderLineFinderService.call(params[:id])
                                 ^^^^^^^^^^^^^^^^^^^^^^^^

Did you mean? OrderLinesController):

app/controllers/order_lines_controller.rb:61:in ‘set_order_line’ Started GET “/” for 127.0.0.1 at 2022-07-18 20:19:40 -0500 Processing by ProductsController#index as HTML

Order Load (8.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (3.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.6ms | Allocations: 8583)
Product Exists? (9.8ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (3.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.3ms | Allocations: 3479)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2637)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2635)
Tag Load (3.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2635)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.5ms | Allocations: 2707)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.4ms | Allocations: 2635)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.9ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 23.0ms | Allocations: 3425)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.7ms | Allocations: 2603)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.3ms | Allocations: 2603)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2605)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.7ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 19.5ms | Allocations: 3429)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2602)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 453.6ms | Allocations: 77857)
Rendered layout layouts/application.html.erb (Duration: 472.0ms | Allocations: 85610)

Completed 200 OK in 488ms (Views: 412.2ms | ActiveRecord: 69.5ms | Allocations: 87265)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:19:41 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (12.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 29.4ms | Allocations: 8561)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.2ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.4ms | Allocations: 3470)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2635)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 3424)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.5ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.0ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2602)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 333.7ms | Allocations: 77814)
Rendered layout layouts/application.html.erb (Duration: 348.6ms | Allocations: 85567)

Completed 200 OK in 371ms (Views: 309.7ms | ActiveRecord: 42.6ms | Allocations: 87244)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 20:19:45 -0500 Processing by OrdersController#cart as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 3]]
↳ app/views/orders/cart.html.erb:3
Product Load (1.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (1.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.4ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 111.5ms | Allocations: 19462)
Rendered layout layouts/application.html.erb (Duration: 158.8ms | Allocations: 42302)

Completed 200 OK in 192ms (Views: 146.2ms | ActiveRecord: 17.8ms | Allocations: 51994)

Started DELETE “/order_lines/5” for 127.0.0.1 at 2022-07-18 20:19:46 -0500 Processing by OrderLinesController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"5"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_finder_service.rb:7:in `call'
User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:61:in `set_order_line'
TRANSACTION (0.8ms)  BEGIN
↳ app/services/order_lines/order_line_destroy_service.rb:7:in `call'
OrderLine Destroy (0.7ms)  DELETE FROM "order_lines" WHERE "order_lines"."id" = $1  [["id", 5]]
↳ app/services/order_lines/order_line_destroy_service.rb:7:in `call'
Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/models/order_line.rb:28:in `update_total'
OrderLine Load (1.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 3]]
↳ app/models/order.rb:31:in `set_total'
Order Update (1.1ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "0.0"], ["updated_at", "2022-07-19 01:19:46.597330"], ["id", 3]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (1.1ms)  COMMIT
↳ app/services/order_lines/order_line_destroy_service.rb:7:in `call'

Redirected to localhost:3000/cart Completed 302 Found in 64ms (ActiveRecord: 7.1ms | Allocations: 9060)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 20:19:46 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 3]]
↳ app/views/orders/cart.html.erb:3
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.7ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 11.7ms | Allocations: 2436)
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 36.3ms | Allocations: 11125)

Completed 200 OK in 47ms (Views: 36.0ms | ActiveRecord: 1.4ms | Allocations: 13556)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:19:47 -0500 Processing by ProductsController#index as HTML

Order Load (1.9ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 49.8ms | Allocations: 12886)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 39.4ms | Allocations: 10332)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 2844)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 2640)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 22.4ms | Allocations: 5111)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (8.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.8ms | Allocations: 2605)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.6ms | Allocations: 2603)
Tag Load (5.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.6ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 18.2ms | Allocations: 3429)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 2602)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 462.5ms | Allocations: 91144)
Rendered layout layouts/application.html.erb (Duration: 485.6ms | Allocations: 99081)

Completed 200 OK in 505ms (Views: 439.5ms | ActiveRecord: 50.3ms | Allocations: 101828)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:19:48 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (5.9ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 23.3ms | Allocations: 8583)
Product Exists? (0.9ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (2.2ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 26.1ms | Allocations: 3490)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 2635)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.6ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.8ms | Allocations: 2635)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 57.1ms | Allocations: 2635)
Tag Load (7.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.0ms | Allocations: 2635)
Tag Load (3.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2707)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2635)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2635)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (2.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.4ms | Allocations: 3424)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2603)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2604)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.4ms | Allocations: 2635)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (5.1ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 33.4ms | Allocations: 3429)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.0ms | Allocations: 2602)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (1.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 23.9ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 460.7ms | Allocations: 77863)
Rendered layout layouts/application.html.erb (Duration: 480.4ms | Allocations: 85617)

Completed 200 OK in 506ms (Views: 404.6ms | ActiveRecord: 78.2ms | Allocations: 87398)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 20:19:49 -0500 Processing by OrdersController#cart as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 3]]
↳ app/views/orders/cart.html.erb:3
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (3.4ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 14.0ms | Allocations: 2394)
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 47.8ms | Allocations: 10906)

Completed 200 OK in 75ms (Views: 43.9ms | ActiveRecord: 5.1ms | Allocations: 13242)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:19:50 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.8ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 17.1ms | Allocations: 8563)
Product Exists? (1.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (6.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 43.0ms | Allocations: 3470)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.2ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2635)
Tag Load (4.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.8ms | Allocations: 2635)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.7ms | Allocations: 2635)
Tag Load (3.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.8ms | Allocations: 2635)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.6ms | Allocations: 2707)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 2635)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (2.0ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 21.4ms | Allocations: 3424)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.6ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.3ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2603)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.4ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 3429)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2602)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 424.7ms | Allocations: 77816)
Rendered layout layouts/application.html.erb (Duration: 437.1ms | Allocations: 85569)

Completed 200 OK in 454ms (Views: 389.3ms | ActiveRecord: 49.1ms | Allocations: 87216)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-18 20:21:32 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 32ms (ActiveRecord: 9.2ms | Allocations: 6133)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:21:32 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 24.1ms | Allocations: 12818)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 24.5ms | Allocations: 8601)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 2007)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1790)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1818)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1786)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 215.2ms | Allocations: 68367)
Rendered layout layouts/application.html.erb (Duration: 247.4ms | Allocations: 91121)

Completed 200 OK in 294ms (Views: 227.6ms | ActiveRecord: 30.4ms | Allocations: 104753)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-18 20:21:34 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 0.4ms | Allocations: 164)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 7.4ms | Allocations: 1560)
Rendered layout layouts/application.html.erb (Duration: 40.4ms | Allocations: 9484)

Completed 200 OK in 48ms (Views: 46.6ms | ActiveRecord: 0.0ms | Allocations: 10796)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-18 20:21:39 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"alvaro@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.9ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 252ms (ActiveRecord: 1.9ms | Allocations: 2749)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:21:39 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.7ms | Allocations: 8586)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2386)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 24.8ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1495)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1493)
Rendered products/index.html.erb within layouts/application (Duration: 177.0ms | Allocations: 48158)
Rendered layout layouts/application.html.erb (Duration: 194.0ms | Allocations: 55892)

Completed 200 OK in 205ms (Views: 187.4ms | ActiveRecord: 9.2ms | Allocations: 57313)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:21:41 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (2.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 18.6ms | Allocations: 2462)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 29.5ms | Allocations: 6892)
Rendered products/show.html.erb within layouts/application (Duration: 54.5ms | Allocations: 10684)
Rendered layout layouts/application.html.erb (Duration: 73.1ms | Allocations: 18522)

Completed 200 OK in 94ms (Views: 67.7ms | ActiveRecord: 9.7ms | Allocations: 21214)

Started GET “/products/4/comments/1” for 127.0.0.1 at 2022-07-18 20:21:42 -0500

AbstractController::ActionNotFound (The action ‘show’ could not be found for CommentsController):

actionpack (7.0.3) lib/abstract_controller/base.rb:146:in ‘process’ actionview (7.0.3) lib/action_view/rendering.rb:39:in ‘process’ actionpack (7.0.3) lib/action_controller/metal.rb:188:in ‘dispatch’ actionpack (7.0.3) lib/action_controller/metal.rb:251:in ‘dispatch’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:49:in ‘dispatch’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:32:in ‘serve’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:50:in ‘block in serve’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:32:in ‘each’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:32:in ‘serve’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:852:in ‘call’ warden (1.2.9) lib/warden/manager.rb:36:in ‘block in call’ warden (1.2.9) lib/warden/manager.rb:34:in ‘catch’ warden (1.2.9) lib/warden/manager.rb:34:in ‘call’ rack (2.2.4) lib/rack/tempfile_reaper.rb:15:in ‘call’ rack (2.2.4) lib/rack/etag.rb:27:in ‘call’ rack (2.2.4) lib/rack/conditional_get.rb:27:in ‘call’ rack (2.2.4) lib/rack/head.rb:12:in ‘call’ actionpack (7.0.3) lib/action_dispatch/http/permissions_policy.rb:38:in ‘call’ actionpack (7.0.3) lib/action_dispatch/http/content_security_policy.rb:36:in ‘call’ rack (2.2.4) lib/rack/session/abstract/id.rb:266:in ‘context’ rack (2.2.4) lib/rack/session/abstract/id.rb:260:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/cookies.rb:697:in ‘call’ activerecord (7.0.3) lib/active_record/migration.rb:603:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:27:in ‘block in call’ activesupport (7.0.3) lib/active_support/callbacks.rb:99:in ‘run_callbacks’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:26:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/debug_exceptions.rb:28:in ‘call’ web-console (4.2.0) lib/web_console/middleware.rb:132:in ‘call_app’ web-console (4.2.0) lib/web_console/middleware.rb:28:in ‘block in call’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘catch’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/show_exceptions.rb:26:in ‘call’ railties (7.0.3) lib/rails/rack/logger.rb:40:in ‘call_app’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘block in call’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘block in tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:38:in ‘tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘tagged’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘call’ sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/remote_ip.rb:93:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/request_id.rb:26:in ‘call’ rack (2.2.4) lib/rack/method_override.rb:24:in ‘call’ rack (2.2.4) lib/rack/runtime.rb:22:in ‘call’ activesupport (7.0.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/server_timing.rb:20:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/static.rb:23:in ‘call’ rack (2.2.4) lib/rack/sendfile.rb:110:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/host_authorization.rb:137:in ‘call’ railties (7.0.3) lib/rails/engine.rb:530:in ‘call’ puma (5.6.4) lib/puma/configuration.rb:252:in ‘call’ puma (5.6.4) lib/puma/request.rb:77:in ‘block in handle_request’ puma (5.6.4) lib/puma/thread_pool.rb:340:in ‘with_force_shutdown’ puma (5.6.4) lib/puma/request.rb:76:in ‘handle_request’ puma (5.6.4) lib/puma/server.rb:441:in ‘process_client’ puma (5.6.4) lib/puma/thread_pool.rb:147:in ‘block in spawn_thread’ Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:22:06 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 21.1ms | Allocations: 2408)
Comment Load (0.9ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 18.7ms | Allocations: 1989)
Rendered products/show.html.erb within layouts/application (Duration: 41.5ms | Allocations: 4585)
Rendered layout layouts/application.html.erb (Duration: 68.9ms | Allocations: 12353)

Completed 200 OK in 90ms (Views: 68.1ms | ActiveRecord: 4.8ms | Allocations: 14434)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:22:07 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (6.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 17.5ms | Allocations: 2298)
Comment Load (1.1ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 19.1ms | Allocations: 1938)
Rendered products/show.html.erb within layouts/application (Duration: 37.1ms | Allocations: 4421)
Rendered layout layouts/application.html.erb (Duration: 65.1ms | Allocations: 12142)

Completed 200 OK in 74ms (Views: 55.7ms | ActiveRecord: 10.6ms | Allocations: 13949)

Started GET “/products/4/comments/1” for 127.0.0.1 at 2022-07-18 20:22:28 -0500

AbstractController::ActionNotFound (The action ‘show’ could not be found for CommentsController):

actionpack (7.0.3) lib/abstract_controller/base.rb:146:in ‘process’ actionview (7.0.3) lib/action_view/rendering.rb:39:in ‘process’ actionpack (7.0.3) lib/action_controller/metal.rb:188:in ‘dispatch’ actionpack (7.0.3) lib/action_controller/metal.rb:251:in ‘dispatch’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:49:in ‘dispatch’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:32:in ‘serve’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:50:in ‘block in serve’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:32:in ‘each’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:32:in ‘serve’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:852:in ‘call’ warden (1.2.9) lib/warden/manager.rb:36:in ‘block in call’ warden (1.2.9) lib/warden/manager.rb:34:in ‘catch’ warden (1.2.9) lib/warden/manager.rb:34:in ‘call’ rack (2.2.4) lib/rack/tempfile_reaper.rb:15:in ‘call’ rack (2.2.4) lib/rack/etag.rb:27:in ‘call’ rack (2.2.4) lib/rack/conditional_get.rb:27:in ‘call’ rack (2.2.4) lib/rack/head.rb:12:in ‘call’ actionpack (7.0.3) lib/action_dispatch/http/permissions_policy.rb:38:in ‘call’ actionpack (7.0.3) lib/action_dispatch/http/content_security_policy.rb:36:in ‘call’ rack (2.2.4) lib/rack/session/abstract/id.rb:266:in ‘context’ rack (2.2.4) lib/rack/session/abstract/id.rb:260:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/cookies.rb:697:in ‘call’ activerecord (7.0.3) lib/active_record/migration.rb:603:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:27:in ‘block in call’ activesupport (7.0.3) lib/active_support/callbacks.rb:99:in ‘run_callbacks’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:26:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/debug_exceptions.rb:28:in ‘call’ web-console (4.2.0) lib/web_console/middleware.rb:132:in ‘call_app’ web-console (4.2.0) lib/web_console/middleware.rb:28:in ‘block in call’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘catch’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/show_exceptions.rb:26:in ‘call’ railties (7.0.3) lib/rails/rack/logger.rb:40:in ‘call_app’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘block in call’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘block in tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:38:in ‘tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘tagged’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘call’ sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/remote_ip.rb:93:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/request_id.rb:26:in ‘call’ rack (2.2.4) lib/rack/method_override.rb:24:in ‘call’ rack (2.2.4) lib/rack/runtime.rb:22:in ‘call’ activesupport (7.0.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/server_timing.rb:20:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/static.rb:23:in ‘call’ rack (2.2.4) lib/rack/sendfile.rb:110:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/host_authorization.rb:137:in ‘call’ railties (7.0.3) lib/rails/engine.rb:530:in ‘call’ puma (5.6.4) lib/puma/configuration.rb:252:in ‘call’ puma (5.6.4) lib/puma/request.rb:77:in ‘block in handle_request’ puma (5.6.4) lib/puma/thread_pool.rb:340:in ‘with_force_shutdown’ puma (5.6.4) lib/puma/request.rb:76:in ‘handle_request’ puma (5.6.4) lib/puma/server.rb:441:in ‘process_client’ puma (5.6.4) lib/puma/thread_pool.rb:147:in ‘block in spawn_thread’ Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:23:01 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (3.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 74.6ms | Allocations: 15495)
Comment Load (0.7ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 32.2ms | Allocations: 6822)
Rendered products/show.html.erb within layouts/application (Duration: 113.7ms | Allocations: 23634)
Rendered layout layouts/application.html.erb (Duration: 158.5ms | Allocations: 46409)

Completed 200 OK in 290ms (Views: 137.0ms | ActiveRecord: 45.1ms | Allocations: 63803)

Started GET “/products/4/comments/1” for 127.0.0.1 at 2022-07-18 20:23:03 -0500

AbstractController::ActionNotFound (The action ‘show’ could not be found for CommentsController):

actionpack (7.0.3) lib/abstract_controller/base.rb:146:in ‘process’ actionview (7.0.3) lib/action_view/rendering.rb:39:in ‘process’ actionpack (7.0.3) lib/action_controller/metal.rb:188:in ‘dispatch’ actionpack (7.0.3) lib/action_controller/metal.rb:251:in ‘dispatch’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:49:in ‘dispatch’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:32:in ‘serve’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:50:in ‘block in serve’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:32:in ‘each’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:32:in ‘serve’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:852:in ‘call’ warden (1.2.9) lib/warden/manager.rb:36:in ‘block in call’ warden (1.2.9) lib/warden/manager.rb:34:in ‘catch’ warden (1.2.9) lib/warden/manager.rb:34:in ‘call’ rack (2.2.4) lib/rack/tempfile_reaper.rb:15:in ‘call’ rack (2.2.4) lib/rack/etag.rb:27:in ‘call’ rack (2.2.4) lib/rack/conditional_get.rb:27:in ‘call’ rack (2.2.4) lib/rack/head.rb:12:in ‘call’ actionpack (7.0.3) lib/action_dispatch/http/permissions_policy.rb:38:in ‘call’ actionpack (7.0.3) lib/action_dispatch/http/content_security_policy.rb:36:in ‘call’ rack (2.2.4) lib/rack/session/abstract/id.rb:266:in ‘context’ rack (2.2.4) lib/rack/session/abstract/id.rb:260:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/cookies.rb:697:in ‘call’ activerecord (7.0.3) lib/active_record/migration.rb:603:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:27:in ‘block in call’ activesupport (7.0.3) lib/active_support/callbacks.rb:99:in ‘run_callbacks’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:26:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/debug_exceptions.rb:28:in ‘call’ web-console (4.2.0) lib/web_console/middleware.rb:132:in ‘call_app’ web-console (4.2.0) lib/web_console/middleware.rb:28:in ‘block in call’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘catch’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/show_exceptions.rb:26:in ‘call’ railties (7.0.3) lib/rails/rack/logger.rb:40:in ‘call_app’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘block in call’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘block in tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:38:in ‘tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘tagged’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘call’ sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/remote_ip.rb:93:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/request_id.rb:26:in ‘call’ rack (2.2.4) lib/rack/method_override.rb:24:in ‘call’ rack (2.2.4) lib/rack/runtime.rb:22:in ‘call’ activesupport (7.0.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/server_timing.rb:20:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/static.rb:23:in ‘call’ rack (2.2.4) lib/rack/sendfile.rb:110:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/host_authorization.rb:137:in ‘call’ railties (7.0.3) lib/rails/engine.rb:530:in ‘call’ puma (5.6.4) lib/puma/configuration.rb:252:in ‘call’ puma (5.6.4) lib/puma/request.rb:77:in ‘block in handle_request’ puma (5.6.4) lib/puma/thread_pool.rb:340:in ‘with_force_shutdown’ puma (5.6.4) lib/puma/request.rb:76:in ‘handle_request’ puma (5.6.4) lib/puma/server.rb:441:in ‘process_client’ puma (5.6.4) lib/puma/thread_pool.rb:147:in ‘block in spawn_thread’ Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:24:52 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 86.8ms | Allocations: 15478)
Comment Load (1.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (1.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 30.4ms | Allocations: 6818)
Rendered products/show.html.erb within layouts/application (Duration: 122.7ms | Allocations: 23612)
Rendered layout layouts/application.html.erb (Duration: 173.8ms | Allocations: 46279)

Completed 200 OK in 253ms (Views: 163.7ms | ActiveRecord: 34.6ms | Allocations: 63570)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:24:53 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 2347)
Comment Load (2.7ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (2.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 13.1ms | Allocations: 1944)
Rendered products/show.html.erb within layouts/application (Duration: 31.4ms | Allocations: 4477)
Rendered layout layouts/application.html.erb (Duration: 57.2ms | Allocations: 12143)

Completed 200 OK in 72ms (Views: 50.6ms | ActiveRecord: 9.3ms | Allocations: 14064)

Started GET “/products/4/comments/1” for 127.0.0.1 at 2022-07-18 20:24:55 -0500

AbstractController::ActionNotFound (The action ‘show’ could not be found for CommentsController):

actionpack (7.0.3) lib/abstract_controller/base.rb:146:in ‘process’ actionview (7.0.3) lib/action_view/rendering.rb:39:in ‘process’ actionpack (7.0.3) lib/action_controller/metal.rb:188:in ‘dispatch’ actionpack (7.0.3) lib/action_controller/metal.rb:251:in ‘dispatch’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:49:in ‘dispatch’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:32:in ‘serve’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:50:in ‘block in serve’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:32:in ‘each’ actionpack (7.0.3) lib/action_dispatch/journey/router.rb:32:in ‘serve’ actionpack (7.0.3) lib/action_dispatch/routing/route_set.rb:852:in ‘call’ warden (1.2.9) lib/warden/manager.rb:36:in ‘block in call’ warden (1.2.9) lib/warden/manager.rb:34:in ‘catch’ warden (1.2.9) lib/warden/manager.rb:34:in ‘call’ rack (2.2.4) lib/rack/tempfile_reaper.rb:15:in ‘call’ rack (2.2.4) lib/rack/etag.rb:27:in ‘call’ rack (2.2.4) lib/rack/conditional_get.rb:27:in ‘call’ rack (2.2.4) lib/rack/head.rb:12:in ‘call’ actionpack (7.0.3) lib/action_dispatch/http/permissions_policy.rb:38:in ‘call’ actionpack (7.0.3) lib/action_dispatch/http/content_security_policy.rb:36:in ‘call’ rack (2.2.4) lib/rack/session/abstract/id.rb:266:in ‘context’ rack (2.2.4) lib/rack/session/abstract/id.rb:260:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/cookies.rb:697:in ‘call’ activerecord (7.0.3) lib/active_record/migration.rb:603:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:27:in ‘block in call’ activesupport (7.0.3) lib/active_support/callbacks.rb:99:in ‘run_callbacks’ actionpack (7.0.3) lib/action_dispatch/middleware/callbacks.rb:26:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/debug_exceptions.rb:28:in ‘call’ web-console (4.2.0) lib/web_console/middleware.rb:132:in ‘call_app’ web-console (4.2.0) lib/web_console/middleware.rb:28:in ‘block in call’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘catch’ web-console (4.2.0) lib/web_console/middleware.rb:17:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/show_exceptions.rb:26:in ‘call’ railties (7.0.3) lib/rails/rack/logger.rb:40:in ‘call_app’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘block in call’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘block in tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:38:in ‘tagged’ activesupport (7.0.3) lib/active_support/tagged_logging.rb:114:in ‘tagged’ railties (7.0.3) lib/rails/rack/logger.rb:25:in ‘call’ sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/remote_ip.rb:93:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/request_id.rb:26:in ‘call’ rack (2.2.4) lib/rack/method_override.rb:24:in ‘call’ rack (2.2.4) lib/rack/runtime.rb:22:in ‘call’ activesupport (7.0.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/server_timing.rb:20:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/executor.rb:14:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/static.rb:23:in ‘call’ rack (2.2.4) lib/rack/sendfile.rb:110:in ‘call’ actionpack (7.0.3) lib/action_dispatch/middleware/host_authorization.rb:137:in ‘call’ railties (7.0.3) lib/rails/engine.rb:530:in ‘call’ puma (5.6.4) lib/puma/configuration.rb:252:in ‘call’ puma (5.6.4) lib/puma/request.rb:77:in ‘block in handle_request’ puma (5.6.4) lib/puma/thread_pool.rb:340:in ‘with_force_shutdown’ puma (5.6.4) lib/puma/request.rb:76:in ‘handle_request’ puma (5.6.4) lib/puma/server.rb:441:in ‘process_client’ puma (5.6.4) lib/puma/thread_pool.rb:147:in ‘block in spawn_thread’ Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:24:56 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.9ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (5.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 2405)
Comment Load (0.2ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 13.3ms | Allocations: 1983)
Rendered products/show.html.erb within layouts/application (Duration: 28.4ms | Allocations: 4576)
Rendered layout layouts/application.html.erb (Duration: 51.9ms | Allocations: 12400)

Completed 200 OK in 70ms (Views: 53.3ms | ActiveRecord: 8.3ms | Allocations: 14470)

Started PATCH “/products/4/comments/1” for 127.0.0.1 at 2022-07-18 20:25:29 -0500 Processing by CommentsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"4", "id"=>"1"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'

Completed 500 Internal Server Error in 38ms (ActiveRecord: 3.6ms | Allocations: 8911)

ArgumentError (wrong number of arguments (given 1, expected 2)):

app/services/comments/comment_finder_service.rb:2:in ‘initialize’ app/services/application_service.rb:3:in ‘new’ app/services/application_service.rb:3:in ‘call’ app/controllers/comments_controller.rb:46:in ‘set_comment’ Started GET “/” for 127.0.0.1 at 2022-07-18 20:25:36 -0500 Processing by ProductsController#index as HTML

Order Load (0.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 29.0ms | Allocations: 12850)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 41.0ms | Allocations: 12341)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1711)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1493)
Rendered products/index.html.erb within layouts/application (Duration: 227.9ms | Allocations: 62802)
Rendered layout layouts/application.html.erb (Duration: 277.0ms | Allocations: 85611)

Completed 200 OK in 331ms (Views: 261.1ms | ActiveRecord: 29.2ms | Allocations: 95567)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:25:36 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 21.4ms | Allocations: 8607)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2355)
Tag Load (3.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 1494)
Tag Load (6.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (4.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1494)
Tag Load (8.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1493)
Rendered products/index.html.erb within layouts/application (Duration: 199.0ms | Allocations: 48139)
Rendered layout layouts/application.html.erb (Duration: 213.3ms | Allocations: 55861)

Completed 200 OK in 219ms (Views: 183.2ms | ActiveRecord: 30.9ms | Allocations: 57359)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:25:40 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 2301)
Comment Load (1.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (4.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 32.7ms | Allocations: 7005)
Rendered products/show.html.erb within layouts/application (Duration: 58.7ms | Allocations: 10622)
Rendered layout layouts/application.html.erb (Duration: 93.2ms | Allocations: 18403)

Completed 200 OK in 109ms (Views: 80.1ms | ActiveRecord: 14.7ms | Allocations: 20262)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:25:58 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 72.9ms | Allocations: 15488)
Comment Load (0.2ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 20.8ms | Allocations: 6982)
Rendered products/show.html.erb within layouts/application (Duration: 97.4ms | Allocations: 23785)
Rendered layout layouts/application.html.erb (Duration: 138.5ms | Allocations: 46429)

Completed 200 OK in 251ms (Views: 118.3ms | ActiveRecord: 35.6ms | Allocations: 63800)

Started DELETE “/products/4/comments/1” for 127.0.0.1 at 2022-07-18 20:26:00 -0500 Processing by CommentsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"4", "id"=>"1"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'

Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.3ms | Allocations: 1738)

ArgumentError (wrong number of arguments (given 1, expected 2)):

app/services/comments/comment_finder_service.rb:2:in ‘initialize’ app/services/application_service.rb:3:in ‘new’ app/services/application_service.rb:3:in ‘call’ app/controllers/comments_controller.rb:46:in ‘set_comment’ Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:26:50 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.8ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 43.2ms | Allocations: 15491)
Comment Load (0.2ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 22.4ms | Allocations: 6982)
Rendered products/show.html.erb within layouts/application (Duration: 69.2ms | Allocations: 23793)
Rendered layout layouts/application.html.erb (Duration: 112.5ms | Allocations: 46567)

Completed 200 OK in 184ms (Views: 101.2ms | ActiveRecord: 26.4ms | Allocations: 63949)

Started DELETE “/products/4/comments/1” for 127.0.0.1 at 2022-07-18 20:26:52 -0500 Processing by CommentsController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"4", "id"=>"1"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Comment Load (0.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND "comments"."id" = $3 LIMIT $4  [["commentable_id", 4], ["commentable_type", "Product"], ["id", 1], ["LIMIT", 1]]
↳ app/services/comments/comment_finder_service.rb:8:in `call'
User Load (2.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:46:in `set_comment'
TRANSACTION (2.4ms)  BEGIN
↳ app/services/comments/comment_destroy_service.rb:7:in `call'
Comment Destroy (0.3ms)  DELETE FROM "comments" WHERE "comments"."id" = $1  [["id", 1]]
↳ app/services/comments/comment_destroy_service.rb:7:in `call'
TRANSACTION (0.9ms)  COMMIT
↳ app/services/comments/comment_destroy_service.rb:7:in `call'

Redirected to localhost:3000/products/4 Completed 302 Found in 33ms (ActiveRecord: 6.7ms | Allocations: 5154)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:26:52 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"4"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2409)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 4.3ms | Allocations: 825)
Rendered products/show.html.erb within layouts/application (Duration: 16.9ms | Allocations: 3450)
Rendered layout layouts/application.html.erb (Duration: 36.0ms | Allocations: 11220)

Completed 200 OK in 45ms (Views: 35.9ms | ActiveRecord: 1.7ms | Allocations: 13234)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:26:53 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2298)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 3.4ms | Allocations: 811)
Rendered products/show.html.erb within layouts/application (Duration: 14.9ms | Allocations: 3312)
Rendered layout layouts/application.html.erb (Duration: 30.2ms | Allocations: 10977)

Completed 200 OK in 43ms (Views: 29.5ms | ActiveRecord: 2.3ms | Allocations: 12780)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-18 20:26:57 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 13ms (ActiveRecord: 0.2ms | Allocations: 2616)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:26:57 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 17.8ms | Allocations: 9826)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 2121)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1820)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 46.3ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1787)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1789)
Tag Load (13.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 19.0ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1818)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1786)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 252.3ms | Allocations: 56740)
Rendered layout layouts/application.html.erb (Duration: 269.0ms | Allocations: 64569)

Completed 200 OK in 282ms (Views: 240.9ms | ActiveRecord: 30.7ms | Allocations: 66220)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-18 20:26:58 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 0.5ms | Allocations: 164)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 14.6ms | Allocations: 1558)
Rendered layout layouts/application.html.erb (Duration: 40.1ms | Allocations: 9477)

Completed 200 OK in 49ms (Views: 44.9ms | ActiveRecord: 0.0ms | Allocations: 10805)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-18 20:27:04 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"test1@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2 LIMIT $3  [["user_id", 3], ["status", 0], ["LIMIT", 1]]
↳ app/controllers/sessions_controller.rb:12:in `after_login'
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
TRANSACTION (0.6ms)  BEGIN
↳ app/controllers/sessions_controller.rb:15:in `after_login'
Order Create (0.5ms)  INSERT INTO "orders" ("date", "user_id", "total", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["date", nil], ["user_id", 3], ["total", "0.0"], ["status", 0], ["created_at", "2022-07-19 01:27:04.425174"], ["updated_at", "2022-07-19 01:27:04.425174"]]
↳ app/controllers/sessions_controller.rb:15:in `after_login'
TRANSACTION (0.9ms)  COMMIT
↳ app/controllers/sessions_controller.rb:15:in `after_login'

Completed 302 Found in 264ms (ActiveRecord: 3.1ms | Allocations: 7025)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:27:04 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.1ms | Allocations: 8511)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 3625)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2638)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2636)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 2636)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 5163)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (15.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.4ms | Allocations: 2603)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2605)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2602)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 3429)
Rendered products/index.html.erb within layouts/application (Duration: 246.3ms | Allocations: 79678)
Rendered layout layouts/application.html.erb (Duration: 259.9ms | Allocations: 87426)

Completed 200 OK in 266ms (Views: 221.0ms | ActiveRecord: 39.9ms | Allocations: 89665)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:27:06 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 25.4ms | Allocations: 3432)
Rendered comments/_form.html.erb (Duration: 1.6ms | Allocations: 804)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 4], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 4.3ms | Allocations: 937)
Rendered products/show.html.erb within layouts/application (Duration: 32.9ms | Allocations: 5442)
Rendered layout layouts/application.html.erb (Duration: 51.6ms | Allocations: 13148)

Completed 200 OK in 80ms (Views: 49.9ms | ActiveRecord: 5.1ms | Allocations: 15288)

Started POST “/products/4/comments” for 127.0.0.1 at 2022-07-18 20:27:11 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"New one", "rate"=>"3"}, "commit"=>"Add comment", "product_id"=>"4"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:10:in `create'
TRANSACTION (0.9ms)  BEGIN
↳ app/controllers/comments_controller.rb:13:in `create'
Comment Create (2.3ms)  INSERT INTO "comments" ("body", "rate", "user_id", "commentable_type", "commentable_id", "created_at", "updated_at", "approved") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["body", "New one"], ["rate", 3], ["user_id", 3], ["commentable_type", "Product"], ["commentable_id", 4], ["created_at", "2022-07-19 01:27:11.351444"], ["updated_at", "2022-07-19 01:27:11.351444"], ["approved", false]]
↳ app/controllers/comments_controller.rb:13:in `create'
TRANSACTION (1.6ms)  COMMIT
↳ app/controllers/comments_controller.rb:13:in `create'

Redirected to localhost:3000/products/4 Completed 302 Found in 34ms (ActiveRecord: 5.9ms | Allocations: 4061)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:27:11 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"4"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.5ms | Allocations: 3432)
Rendered comments/_form.html.erb (Duration: 1.7ms | Allocations: 763)
Comment Load (2.7ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 4], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 10.5ms | Allocations: 1759)
Rendered products/show.html.erb within layouts/application (Duration: 29.7ms | Allocations: 6224)
Rendered layout layouts/application.html.erb (Duration: 47.4ms | Allocations: 13921)

Completed 200 OK in 56ms (Views: 43.6ms | ActiveRecord: 6.0ms | Allocations: 16050)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-18 20:27:13 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 10ms (ActiveRecord: 0.4ms | Allocations: 1841)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:27:13 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.4ms | Allocations: 8568)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1899)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 35.4ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 33.8ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 23.6ms | Allocations: 1820)
Tag Load (10.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 32.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 27.6ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 28.1ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 36.4ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1786)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 377.1ms | Allocations: 55087)
Rendered layout layouts/application.html.erb (Duration: 390.7ms | Allocations: 62803)

Completed 200 OK in 403ms (Views: 372.3ms | ActiveRecord: 19.4ms | Allocations: 64172)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-18 20:27:14 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 0.3ms | Allocations: 138)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 2.9ms | Allocations: 1284)
Rendered layout layouts/application.html.erb (Duration: 32.2ms | Allocations: 8964)

Completed 200 OK in 48ms (Views: 39.1ms | ActiveRecord: 0.0ms | Allocations: 9620)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-18 20:27:20 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"support@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "support@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 248ms (ActiveRecord: 0.3ms | Allocations: 2392)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:27:20 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.8ms | Allocations: 8566)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2340)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1499)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1497)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1515)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1497)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1496)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1465)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1465)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1465)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1465)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1467)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1465)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1465)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1496)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1496)
Rendered products/index.html.erb within layouts/application (Duration: 139.7ms | Allocations: 48090)
Rendered layout layouts/application.html.erb (Duration: 153.7ms | Allocations: 55811)

Completed 200 OK in 159ms (Views: 145.1ms | ActiveRecord: 9.6ms | Allocations: 57176)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:27:22 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 22.6ms | Allocations: 2301)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 6.9ms | Allocations: 1883)
Rendered products/show.html.erb within layouts/application (Duration: 34.6ms | Allocations: 4387)
Rendered layout layouts/application.html.erb (Duration: 57.0ms | Allocations: 12052)

Completed 200 OK in 88ms (Views: 54.4ms | ActiveRecord: 3.8ms | Allocations: 13871)

Started PATCH “/products/4/comments/2” for 127.0.0.1 at 2022-07-18 20:27:23 -0500 Processing by CommentsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"4", "id"=>"2"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND "comments"."id" = $3 LIMIT $4  [["commentable_id", 4], ["commentable_type", "Product"], ["id", 2], ["LIMIT", 1]]
↳ app/services/comments/comment_finder_service.rb:8:in `call'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:46:in `set_comment'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/comments_controller.rb:20:in `update'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:20:in `update'
Comment Update (0.4ms)  UPDATE "comments" SET "updated_at" = $1, "approved" = $2 WHERE "comments"."id" = $3  [["updated_at", "2022-07-19 01:27:23.987564"], ["approved", true], ["id", 2]]
↳ app/controllers/comments_controller.rb:20:in `update'
TRANSACTION (5.4ms)  COMMIT
↳ app/controllers/comments_controller.rb:20:in `update'

Redirected to localhost:3000/products/4 Completed 302 Found in 34ms (ActiveRecord: 7.2ms | Allocations: 5340)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:27:24 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"4"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2301)
Comment Load (1.6ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 9.2ms | Allocations: 1646)
Rendered products/show.html.erb within layouts/application (Duration: 23.7ms | Allocations: 4153)
Rendered layout layouts/application.html.erb (Duration: 40.7ms | Allocations: 11818)

Completed 200 OK in 52ms (Views: 40.4ms | ActiveRecord: 3.7ms | Allocations: 13645)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-18 20:27:31 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 13ms (ActiveRecord: 0.3ms | Allocations: 1805)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:27:31 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.2ms | Allocations: 8568)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1899)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1837)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1787)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1789)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1787)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1786)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 198.7ms | Allocations: 55087)
Rendered layout layouts/application.html.erb (Duration: 213.1ms | Allocations: 62747)

Completed 200 OK in 221ms (Views: 203.5ms | ActiveRecord: 11.6ms | Allocations: 64104)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-18 20:27:32 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 0.4ms | Allocations: 138)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 4.7ms | Allocations: 1284)
Rendered layout layouts/application.html.erb (Duration: 26.5ms | Allocations: 8964)

Completed 200 OK in 32ms (Views: 29.9ms | ActiveRecord: 0.0ms | Allocations: 9638)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:27:33 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 16.7ms | Allocations: 8567)
Product Exists? (0.8ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (2.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1895)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1819)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (6.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 20.3ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 1837)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.9ms | Allocations: 1819)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1787)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 1787)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1786)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 266.0ms | Allocations: 55081)
Rendered layout layouts/application.html.erb (Duration: 283.3ms | Allocations: 62788)

Completed 200 OK in 296ms (Views: 262.1ms | ActiveRecord: 26.7ms | Allocations: 64129)

Started GET “/products/4” for 127.0.0.1 at 2022-07-18 20:27:34 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1863)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" IS NULL)  [["commentable_id", 4], ["commentable_type", "Product"], ["approved", true]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 11.0ms | Allocations: 1755)
Rendered products/show.html.erb within layouts/application (Duration: 19.0ms | Allocations: 3838)
Rendered layout layouts/application.html.erb (Duration: 33.4ms | Allocations: 11498)

Completed 200 OK in 51ms (Views: 33.0ms | ActiveRecord: 1.7ms | Allocations: 13317)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:27:35 -0500 Processing by ProductsController#index as HTML

Order Load (0.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 33.9ms | Allocations: 8567)
Product Exists? (1.0ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.8ms | Allocations: 1895)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 1819)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (8.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 20.7ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1818)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1787)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1787)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 1787)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1789)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1786)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 277.5ms | Allocations: 55107)
Rendered layout layouts/application.html.erb (Duration: 295.4ms | Allocations: 62776)

Completed 200 OK in 309ms (Views: 275.8ms | ActiveRecord: 22.1ms | Allocations: 64135)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-18 20:33:54 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"100"}, "commit"=>"Add to Cart"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (0.2ms)  ROLLBACK
↳ app/controllers/order_lines_controller.rb:11:in `create'

Redirected to localhost:3000/products Completed 302 Found in 68ms (ActiveRecord: 7.6ms | Allocations: 22494)

Started GET “/products” for 127.0.0.1 at 2022-07-18 20:33:55 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 17.2ms | Allocations: 12704)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.4ms | Allocations: 7999)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1989)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1786)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 195.5ms | Allocations: 65735)
Rendered layout layouts/application.html.erb (Duration: 231.9ms | Allocations: 88490)

Completed 200 OK in 240ms (Views: 223.3ms | ActiveRecord: 10.5ms | Allocations: 90992)

Started GET “/products” for 127.0.0.1 at 2022-07-18 20:34:45 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 24.9ms | Allocations: 12862)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (3.0ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 28.3ms | Allocations: 8591)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 2007)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.1ms | Allocations: 1819)
Tag Load (3.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.1ms | Allocations: 1819)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.9ms | Allocations: 1819)
Tag Load (4.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 1819)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1819)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.8ms | Allocations: 1819)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 1837)
Tag Load (5.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 19.9ms | Allocations: 1819)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 1787)
Tag Load (4.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 1787)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1787)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 1787)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1787)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1786)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 365.6ms | Allocations: 68433)
Rendered layout layouts/application.html.erb (Duration: 409.6ms | Allocations: 91039)

Completed 200 OK in 472ms (Views: 360.7ms | ActiveRecord: 64.5ms | Allocations: 105420)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-18 20:34:49 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"100"}, "commit"=>"Add to Cart"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
TRANSACTION (0.3ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
Order Create (0.5ms)  INSERT INTO "orders" ("date", "user_id", "total", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["date", nil], ["user_id", nil], ["total", "1200.0"], ["status", 0], ["created_at", "2022-07-19 01:34:49.906255"], ["updated_at", "2022-07-19 01:34:49.906255"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Create (2.3ms)  INSERT INTO "order_lines" ("order_id", "product_id", "quantity", "total", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["order_id", 5], ["product_id", 4], ["quantity", 100], ["total", "1200.0"], ["created_at", "2022-07-19 01:34:49.914874"], ["updated_at", "2022-07-19 01:34:49.914874"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (0.2ms)  ROLLBACK
↳ app/controllers/order_lines_controller.rb:11:in `create'

Completed 500 Internal Server Error in 47ms (ActiveRecord: 4.5ms | Allocations: 9512)

ActiveRecord::RangeError (PG::NumericValueOutOfRange: ERROR: numeric field overflow DETAIL: A field with precision 5, scale 2 must round to an absolute value less than 10^3. ):

app/controllers/order_lines_controller.rb:11:in ‘create’ Started GET “/” for 127.0.0.1 at 2022-07-18 20:34:59 -0500 Processing by ProductsController#index as HTML

Order Load (1.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.3ms | Allocations: 8613)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1982)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1820)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1818)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 1787)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1787)
Tag Load (4.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.1ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1786)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 242.5ms | Allocations: 55227)
Rendered layout layouts/application.html.erb (Duration: 257.6ms | Allocations: 63044)

Completed 200 OK in 266ms (Views: 241.4ms | ActiveRecord: 18.8ms | Allocations: 64428)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:34:59 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 13.6ms | Allocations: 8565)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1895)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1818)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1787)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1787)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1787)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1786)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 198.6ms | Allocations: 55079)
Rendered layout layouts/application.html.erb (Duration: 214.3ms | Allocations: 62739)

Completed 200 OK in 221ms (Views: 203.5ms | ActiveRecord: 12.0ms | Allocations: 64083)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-18 20:35:02 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"40"}, "commit"=>"Add to Cart"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
Order Create (0.8ms)  INSERT INTO "orders" ("date", "user_id", "total", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["date", nil], ["user_id", nil], ["total", "480.0"], ["status", 0], ["created_at", "2022-07-19 01:35:02.187212"], ["updated_at", "2022-07-19 01:35:02.187212"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Create (0.7ms)  INSERT INTO "order_lines" ("order_id", "product_id", "quantity", "total", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["order_id", 6], ["product_id", 4], ["quantity", 40], ["total", "480.0"], ["created_at", "2022-07-19 01:35:02.193302"], ["updated_at", "2022-07-19 01:35:02.193302"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (1.2ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 34ms (ActiveRecord: 3.4ms | Allocations: 6262)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 20:35:02 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 6]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.7ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 6], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 37.9ms | Allocations: 5790)
Rendered layout layouts/application.html.erb (Duration: 54.5ms | Allocations: 13738)

Completed 200 OK in 67ms (Views: 54.7ms | ActiveRecord: 1.7ms | Allocations: 17292)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:35:05 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 24.4ms | Allocations: 8583)
Product Exists? (5.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1902)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 1819)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1819)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1837)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1786)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 257.0ms | Allocations: 55107)
Rendered layout layouts/application.html.erb (Duration: 276.6ms | Allocations: 62767)

Completed 200 OK in 293ms (Views: 262.6ms | ActiveRecord: 17.4ms | Allocations: 64516)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:35:19 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 23.2ms | Allocations: 12874)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 24.8ms | Allocations: 8599)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2007)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1837)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1818)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1787)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1787)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1787)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1818)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1786)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 242.6ms | Allocations: 68419)
Rendered layout layouts/application.html.erb (Duration: 287.5ms | Allocations: 91116)

Completed 200 OK in 346ms (Views: 268.8ms | ActiveRecord: 28.1ms | Allocations: 106340)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 20:35:21 -0500 Processing by OrdersController#cart as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 6]]
↳ app/views/orders/cart.html.erb:3
Product Load (1.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 6], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 29.1ms | Allocations: 7158)
Rendered layout layouts/application.html.erb (Duration: 47.4ms | Allocations: 15050)

Completed 200 OK in 58ms (Views: 47.1ms | ActiveRecord: 2.3ms | Allocations: 17939)

Started PATCH “/order_lines/6” for 127.0.0.1 at 2022-07-18 20:35:23 -0500 Processing by OrderLinesController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"40"}, "commit"=>"Update", "id"=>"6"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_finder_service.rb:7:in `call'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:29:in `update'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
TRANSACTION (0.3ms)  ROLLBACK
↳ app/controllers/order_lines_controller.rb:29:in `update'

Redirected to localhost:3000/cart Completed 302 Found in 37ms (ActiveRecord: 1.6ms | Allocations: 7592)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 20:35:23 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 6]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.6ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 6], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 16.2ms | Allocations: 4578)
Rendered layout layouts/application.html.erb (Duration: 33.6ms | Allocations: 12413)

Completed 200 OK in 42ms (Views: 34.4ms | ActiveRecord: 1.4ms | Allocations: 14843)

Started PATCH “/order_lines/6” for 127.0.0.1 at 2022-07-18 20:35:25 -0500 Processing by OrderLinesController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"41"}, "commit"=>"Update", "id"=>"6"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (1.6ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_finder_service.rb:7:in `call'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:29:in `update'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
TRANSACTION (0.4ms)  ROLLBACK
↳ app/controllers/order_lines_controller.rb:29:in `update'

Redirected to localhost:3000/cart Completed 302 Found in 25ms (ActiveRecord: 2.6ms | Allocations: 5307)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 20:35:25 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 6]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.4ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 6], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 13.3ms | Allocations: 4451)
Rendered layout layouts/application.html.erb (Duration: 26.0ms | Allocations: 12119)

Completed 200 OK in 33ms (Views: 25.6ms | ActiveRecord: 1.2ms | Allocations: 14458)

Started DELETE “/order_lines/6” for 127.0.0.1 at 2022-07-18 20:35:26 -0500 Processing by OrderLinesController#destroy as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"6"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_finder_service.rb:7:in `call'
TRANSACTION (0.2ms)  BEGIN
↳ app/services/order_lines/order_line_destroy_service.rb:7:in `call'
OrderLine Destroy (0.8ms)  DELETE FROM "order_lines" WHERE "order_lines"."id" = $1  [["id", 6]]
↳ app/services/order_lines/order_line_destroy_service.rb:7:in `call'
Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/models/order_line.rb:28:in `update_total'
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 6]]
↳ app/models/order.rb:31:in `set_total'
Order Update (1.1ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "0.0"], ["updated_at", "2022-07-19 01:35:26.301321"], ["id", 6]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (44.6ms)  COMMIT
↳ app/services/order_lines/order_line_destroy_service.rb:7:in `call'

Redirected to localhost:3000/cart Completed 302 Found in 75ms (ActiveRecord: 48.3ms | Allocations: 6197)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 20:35:26 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 6]]
↳ app/views/orders/cart.html.erb:3
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (3.4ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 6], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 13.2ms | Allocations: 2450)
Rendered layout layouts/application.html.erb (Duration: 30.5ms | Allocations: 10331)

Completed 200 OK in 43ms (Views: 27.6ms | ActiveRecord: 4.6ms | Allocations: 12762)

Started GET “/” for 127.0.0.1 at 2022-07-18 20:35:27 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (5.0ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 22.5ms | Allocations: 8606)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1942)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 36.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 20.9ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 1837)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1818)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1787)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (15.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 24.0ms | Allocations: 1818)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1786)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 357.3ms | Allocations: 55172)
Rendered layout layouts/application.html.erb (Duration: 382.9ms | Allocations: 62888)

Completed 200 OK in 400ms (Views: 350.8ms | ActiveRecord: 33.6ms | Allocations: 64542)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-18 20:35:59 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.6ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 6], ["product_id", 4], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:52:in `new_or_existing_product'
TRANSACTION (0.6ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Create (3.4ms)  INSERT INTO "order_lines" ("order_id", "product_id", "quantity", "total", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["order_id", 6], ["product_id", 4], ["quantity", 2], ["total", "24.0"], ["created_at", "2022-07-19 01:35:59.973336"], ["updated_at", "2022-07-19 01:35:59.973336"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (18.3ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (0.2ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 6]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.4ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "24.0"], ["updated_at", "2022-07-19 01:36:00.003462"], ["id", 6]]
↳ app/controllers/order_lines_controller.rb:12:in `create'
TRANSACTION (1.1ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:12:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 51ms (ActiveRecord: 25.4ms | Allocations: 7807)

Started GET “/cart” for 127.0.0.1 at 2022-07-18 20:36:00 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (1.1ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 6]]
↳ app/views/orders/cart.html.erb:3
Product Load (1.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (7.0ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 6], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 29.8ms | Allocations: 4453)
Rendered layout layouts/application.html.erb (Duration: 56.8ms | Allocations: 12120)

Completed 200 OK in 70ms (Views: 48.4ms | ActiveRecord: 9.6ms | Allocations: 14440)

Started GET “/” for 127.0.0.1 at 2022-07-19 10:11:09 -0500

ActiveRecord::SchemaMigration Pluck (47.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#index as HTML

Order Load (59.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (26.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 144.0ms | Allocations: 14282)
Product Exists? (25.0ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (64.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 1124.0ms | Allocations: 287058)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 24.2ms | Allocations: 2063)
Tag Load (6.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 20.1ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1819)
Tag Load (5.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 22.3ms | Allocations: 1819)
Tag Load (6.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 20.2ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1837)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 20.9ms | Allocations: 1819)
Tag Load (8.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.5ms | Allocations: 1818)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 28.8ms | Allocations: 1787)
Tag Load (6.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.1ms | Allocations: 1787)
Tag Load (8.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.1ms | Allocations: 1787)
Tag Load (9.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 1787)
Tag Load (6.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.2ms | Allocations: 1789)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.7ms | Allocations: 1787)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.4ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 19.4ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 26.3ms | Allocations: 1818)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1786)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.1ms | Allocations: 1818)
Rendered products/index.html.erb within layouts/application (Duration: 1799.4ms | Allocations: 350431)
Rendered layout layouts/application.html.erb (Duration: 3442.4ms | Allocations: 405947)

Completed 200 OK in 4102ms (Views: 3267.5ms | ActiveRecord: 386.4ms | Allocations: 429738)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-19 10:11:18 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 3.4ms | Allocations: 724)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 138.5ms | Allocations: 3528)
Rendered layout layouts/application.html.erb (Duration: 172.8ms | Allocations: 11448)

Completed 200 OK in 231ms (Views: 181.5ms | ActiveRecord: 3.7ms | Allocations: 19330)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-19 10:11:26 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"alvaro@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (60.2ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 490ms (ActiveRecord: 60.2ms | Allocations: 4682)

Started GET “/” for 127.0.0.1 at 2022-07-19 10:11:26 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (7.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 19.7ms | Allocations: 8634)
Product Exists? (7.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.0ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (4.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 26.3ms | Allocations: 2452)
Tag Load (7.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 25.5ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 30.0ms | Allocations: 1494)
Tag Load (17.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 50.2ms | Allocations: 1494)
Tag Load (13.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 36.1ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 49.4ms | Allocations: 1495)
Tag Load (5.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 26.5ms | Allocations: 1494)
Tag Load (4.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 27.0ms | Allocations: 1512)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 1494)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 1494)
Tag Load (13.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 24.9ms | Allocations: 1493)
Tag Load (3.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 1462)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 22.6ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 21.2ms | Allocations: 1462)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 21.3ms | Allocations: 1462)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 25.6ms | Allocations: 1464)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 1462)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 22.2ms | Allocations: 1462)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1494)
Tag Load (4.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 19.1ms | Allocations: 1461)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1493)
Rendered products/index.html.erb within layouts/application (Duration: 611.0ms | Allocations: 48321)
Rendered layout layouts/application.html.erb (Duration: 672.7ms | Allocations: 56105)

Completed 200 OK in 695ms (Views: 572.2ms | ActiveRecord: 108.4ms | Allocations: 57765)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 10:11:34 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 20.0ms | Allocations: 2748)
Rendered products/new.html.erb within layouts/application (Duration: 26.2ms | Allocations: 3042)
Rendered layout layouts/application.html.erb (Duration: 54.9ms | Allocations: 10716)

Completed 200 OK in 60ms (Views: 57.9ms | ActiveRecord: 0.5ms | Allocations: 11105)

Started POST “/products” for 127.0.0.1 at 2022-07-19 10:11:40 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.4ms)  BEGIN
↳ app/services/products/product_creator_service.rb:11:in `call'
Product Create (52.1ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "TEST"], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-19 15:11:40.906981"], ["updated_at", "2022-07-19 15:11:40.906981"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:11:in `call'
TRANSACTION (3.7ms)  COMMIT
↳ app/services/products/product_creator_service.rb:11:in `call'

Redirected to localhost:3000/products Completed 302 Found in 196ms (ActiveRecord: 56.2ms | Allocations: 10253)

Started GET “/products” for 127.0.0.1 at 2022-07-19 10:11:41 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 17.8ms | Allocations: 8631)
Product Exists? (0.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (2.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2419)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 1494)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1494)
Tag Load (6.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.0ms | Allocations: 1512)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 1494)
Tag Load (8.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 1493)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.1ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 19.7ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1464)
Tag Load (3.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1462)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 1493)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.7ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 345.9ms | Allocations: 49768)
Rendered layout layouts/application.html.erb (Duration: 379.9ms | Allocations: 57593)

Completed 200 OK in 392ms (Views: 347.1ms | ActiveRecord: 35.9ms | Allocations: 59159)

Started GET “/products/40/edit” for 127.0.0.1 at 2022-07-19 10:11:44 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"40"}
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 40], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:87:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 7.3ms | Allocations: 1468)
Rendered products/edit.html.erb within layouts/application (Duration: 11.0ms | Allocations: 1716)
Rendered layout layouts/application.html.erb (Duration: 63.9ms | Allocations: 9495)

Completed 200 OK in 107ms (Views: 64.9ms | ActiveRecord: 0.9ms | Allocations: 12325)

Started PATCH “/products/40” for 127.0.0.1 at 2022-07-19 10:11:52 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST EDIT", "description"=>"", "price"=>"20", "stock"=>"107"}, "commit"=>"Update", "id"=>"40"}
Product Load (5.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 40], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:87:in `set_product'
TRANSACTION (0.4ms)  BEGIN
↳ app/models/product.rb:48:in `block in new_log_update'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/models/product.rb:48:in `block in new_log_update'
Log Create (101.9ms)  INSERT INTO "logs" ("loggable_type", "loggable_id", "attr", "old_val", "new_val", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["loggable_type", "Product"], ["loggable_id", 40], ["attr", "name"], ["old_val", "TEST"], ["new_val", "TEST EDIT"], ["user_id", 1], ["created_at", "2022-07-19 15:11:52.442154"], ["updated_at", "2022-07-19 15:11:52.442154"]]
↳ app/models/product.rb:48:in `block in new_log_update'
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/models/product.rb:48:in `block in new_log_update'
Log Create (1.7ms)  INSERT INTO "logs" ("loggable_type", "loggable_id", "attr", "old_val", "new_val", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["loggable_type", "Product"], ["loggable_id", 40], ["attr", "price"], ["old_val", "10.0"], ["new_val", "20.0"], ["user_id", 1], ["created_at", "2022-07-19 15:11:52.559450"], ["updated_at", "2022-07-19 15:11:52.559450"]]
↳ app/models/product.rb:48:in `block in new_log_update'
User Load (6.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/models/product.rb:48:in `block in new_log_update'
Log Create (6.3ms)  INSERT INTO "logs" ("loggable_type", "loggable_id", "attr", "old_val", "new_val", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["loggable_type", "Product"], ["loggable_id", 40], ["attr", "stock"], ["old_val", "100"], ["new_val", "107"], ["user_id", 1], ["created_at", "2022-07-19 15:11:52.573367"], ["updated_at", "2022-07-19 15:11:52.573367"]]
↳ app/models/product.rb:48:in `block in new_log_update'
Product Update (4.0ms)  UPDATE "products" SET "name" = $1, "price" = $2, "stock" = $3, "updated_at" = $4 WHERE "products"."id" = $5  [["name", "TEST EDIT"], ["price", "20.0"], ["stock", 107], ["updated_at", "2022-07-19 15:11:52.338983"], ["id", 40]]
↳ app/services/products/product_updater_service.rb:11:in `call'
TRANSACTION (17.6ms)  COMMIT
↳ app/services/products/product_updater_service.rb:11:in `call'

Redirected to localhost:3000/products Completed 302 Found in 317ms (ActiveRecord: 149.2ms | Allocations: 18005)

Started GET “/products” for 127.0.0.1 at 2022-07-19 10:11:52 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (4.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 31.7ms | Allocations: 8631)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (3.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 2416)
Tag Load (9.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 22.3ms | Allocations: 1494)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 1494)
Tag Load (6.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 1494)
Tag Load (5.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 1494)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 22.2ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.8ms | Allocations: 1512)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (5.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 1494)
Tag Load (5.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1462)
Tag Load (4.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1462)
Tag Load (4.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1462)
Tag Load (4.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1462)
Tag Load (3.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1493)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1465)
Rendered products/index.html.erb within layouts/application (Duration: 313.8ms | Allocations: 49768)
Rendered layout layouts/application.html.erb (Duration: 340.8ms | Allocations: 57536)

Completed 200 OK in 354ms (Views: 274.2ms | ActiveRecord: 68.5ms | Allocations: 59005)

Log Load (4.2ms)  SELECT "logs".* FROM "logs"

Started GET “/logs” for 127.0.0.1 at 2022-07-19 10:12:11 -0500 Processing by LogsController#index as HTML

User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/logs_controller.rb:8:in `index'
Rendering layout layouts/application.html.erb
Rendering logs/index.html.erb within layouts/application
Log Load (0.4ms)  SELECT "logs".* FROM "logs"
↳ app/views/logs/index.html.erb:20
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 40], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
CACHE Product Load (0.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 40], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
CACHE Product Load (0.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 40], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
Rendered logs/index.html.erb within layouts/application (Duration: 106.8ms | Allocations: 6331)
Rendered layout layouts/application.html.erb (Duration: 166.9ms | Allocations: 14291)

Completed 200 OK in 229ms (Views: 178.9ms | ActiveRecord: 1.6ms | Allocations: 16662)

Started GET “/products” for 127.0.0.1 at 2022-07-19 10:12:14 -0500 Processing by ProductsController#index as HTML

Order Load (1.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 189.8ms | Allocations: 8608)
Product Exists? (0.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 23.5ms | Allocations: 2381)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1512)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1494)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1493)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1462)
Tag Load (3.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1462)
Tag Load (5.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 1462)
Tag Load (3.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 21.8ms | Allocations: 1462)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1464)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1462)
Tag Load (4.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1462)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1461)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1493)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 505.8ms | Allocations: 49703)
Rendered layout layouts/application.html.erb (Duration: 530.6ms | Allocations: 57424)

Completed 200 OK in 555ms (Views: 493.2ms | ActiveRecord: 45.1ms | Allocations: 58886)

Started GET “/products” for 127.0.0.1 at 2022-07-19 10:18:55 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 29.3ms | Allocations: 12463)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.9ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 27.6ms | Allocations: 11501)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1711)
Tag Load (3.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 204.9ms | Allocations: 64710)
Rendered layout layouts/application.html.erb (Duration: 272.3ms | Allocations: 87505)

Completed 200 OK in 336ms (Views: 259.2ms | ActiveRecord: 24.3ms | Allocations: 104424)

Started GET “/products/4/edit” for 127.0.0.1 at 2022-07-19 10:18:57 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"4"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:87:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 4.8ms | Allocations: 1500)
Rendered products/edit.html.erb within layouts/application (Duration: 5.1ms | Allocations: 1590)
Rendered layout layouts/application.html.erb (Duration: 27.6ms | Allocations: 9372)

Completed 200 OK in 57ms (Views: 36.6ms | ActiveRecord: 1.4ms | Allocations: 12127)

Started GET “/products” for 127.0.0.1 at 2022-07-19 10:18:58 -0500 Processing by ProductsController#index as HTML

Order Load (3.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 22.6ms | Allocations: 8588)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2356)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 1494)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1462)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 188.4ms | Allocations: 49658)
Rendered layout layouts/application.html.erb (Duration: 206.6ms | Allocations: 57379)

Completed 200 OK in 222ms (Views: 191.0ms | ActiveRecord: 19.5ms | Allocations: 58773)

Started GET “/products/4” for 127.0.0.1 at 2022-07-19 10:18:59 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (3.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 2298)
Comment Load (44.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 84.8ms | Allocations: 8863)
Rendered products/show.html.erb within layouts/application (Duration: 135.8ms | Allocations: 12813)
Rendered layout layouts/application.html.erb (Duration: 176.1ms | Allocations: 20595)

Completed 200 OK in 196ms (Views: 119.9ms | ActiveRecord: 61.1ms | Allocations: 22497)

Started GET “/products” for 127.0.0.1 at 2022-07-19 10:19:03 -0500 Processing by ProductsController#index as HTML

Order Load (0.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 16.8ms | Allocations: 8610)
Product Exists? (2.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (3.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2375)
Tag Load (8.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1512)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1493)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1464)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1462)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1461)
Tag Load (4.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 200.2ms | Allocations: 49695)
Rendered layout layouts/application.html.erb (Duration: 231.2ms | Allocations: 57400)

Completed 200 OK in 250ms (Views: 199.2ms | ActiveRecord: 35.4ms | Allocations: 58860)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-19 10:19:04 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 38ms (ActiveRecord: 0.2ms | Allocations: 3026)

Started GET “/” for 127.0.0.1 at 2022-07-19 10:19:04 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.8ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.6ms | Allocations: 8630)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2019)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1819)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1819)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1818)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1786)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1818)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 197.4ms | Allocations: 57144)
Rendered layout layouts/application.html.erb (Duration: 211.7ms | Allocations: 64961)

Completed 200 OK in 220ms (Views: 199.1ms | ActiveRecord: 15.1ms | Allocations: 66563)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-19 10:19:05 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 0.4ms | Allocations: 164)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 5.4ms | Allocations: 1558)
Rendered layout layouts/application.html.erb (Duration: 32.1ms | Allocations: 9527)

Completed 200 OK in 36ms (Views: 34.4ms | ActiveRecord: 0.0ms | Allocations: 10843)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-19 10:19:13 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"test1@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2 LIMIT $3  [["user_id", 3], ["status", 0], ["LIMIT", 1]]
↳ app/controllers/sessions_controller.rb:12:in `after_login'
TRANSACTION (0.1ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (24.9ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/models/order.rb:31:in `set_total'
TRANSACTION (0.1ms)  COMMIT
↳ app/controllers/sessions_controller.rb:15:in `after_login'

Completed 302 Found in 315ms (ActiveRecord: 26.3ms | Allocations: 6990)

Started GET “/” for 127.0.0.1 at 2022-07-19 10:19:14 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 7.9ms | Allocations: 8513)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (16.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 27.2ms | Allocations: 3624)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2638)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.7ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (15.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 32.9ms | Allocations: 5171)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (2.1ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 27.1ms | Allocations: 3429)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 2602)
Tag Load (4.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 18.9ms | Allocations: 3432)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 331.2ms | Allocations: 82362)
Rendered layout layouts/application.html.erb (Duration: 351.5ms | Allocations: 90119)

Completed 200 OK in 359ms (Views: 293.4ms | ActiveRecord: 59.6ms | Allocations: 92334)

Started GET “/products/4” for 127.0.0.1 at 2022-07-19 10:19:15 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.5ms | Allocations: 3432)
Rendered comments/_form.html.erb (Duration: 16.7ms | Allocations: 1323)
Comment Load (1.2ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 4], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
User Load (2.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 10.3ms | Allocations: 2043)
Rendered products/show.html.erb within layouts/application (Duration: 48.8ms | Allocations: 7170)
Rendered layout layouts/application.html.erb (Duration: 73.1ms | Allocations: 14987)

Completed 200 OK in 94ms (Views: 71.2ms | ActiveRecord: 4.9ms | Allocations: 17141)

Started POST “/products/4/comments” for 127.0.0.1 at 2022-07-19 10:19:22 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"TEST COMMENT1", "rate"=>"2"}, "commit"=>"Add comment", "product_id"=>"4"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:10:in `create'
TRANSACTION (1.9ms)  BEGIN
↳ app/controllers/comments_controller.rb:13:in `create'
Comment Create (14.6ms)  INSERT INTO "comments" ("body", "rate", "user_id", "commentable_type", "commentable_id", "created_at", "updated_at", "approved") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["body", "TEST COMMENT1"], ["rate", 2], ["user_id", 3], ["commentable_type", "Product"], ["commentable_id", 4], ["created_at", "2022-07-19 15:19:22.961482"], ["updated_at", "2022-07-19 15:19:22.961482"], ["approved", false]]
↳ app/controllers/comments_controller.rb:13:in `create'
TRANSACTION (3.9ms)  COMMIT
↳ app/controllers/comments_controller.rb:13:in `create'

Redirected to localhost:3000/products/4 Completed 302 Found in 39ms (ActiveRecord: 21.7ms | Allocations: 4707)

Started GET “/products/4” for 127.0.0.1 at 2022-07-19 10:19:23 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"4"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.8ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 3560)
Rendered comments/_form.html.erb (Duration: 2.2ms | Allocations: 772)
Comment Load (1.0ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 4], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 14.6ms | Allocations: 2511)
Rendered products/show.html.erb within layouts/application (Duration: 34.9ms | Allocations: 7122)
Rendered layout layouts/application.html.erb (Duration: 49.1ms | Allocations: 14922)

Completed 200 OK in 61ms (Views: 46.0ms | ActiveRecord: 5.2ms | Allocations: 17101)

Started POST “/products/4/comments” for 127.0.0.1 at 2022-07-19 10:19:25 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"TEST COMMENT2", "rate"=>"0"}, "commit"=>"Add comment", "product_id"=>"4"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:10:in `create'
TRANSACTION (5.3ms)  BEGIN
↳ app/controllers/comments_controller.rb:13:in `create'
Comment Create (0.5ms)  INSERT INTO "comments" ("body", "rate", "user_id", "commentable_type", "commentable_id", "created_at", "updated_at", "approved") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["body", "TEST COMMENT2"], ["rate", 0], ["user_id", 3], ["commentable_type", "Product"], ["commentable_id", 4], ["created_at", "2022-07-19 15:19:25.900472"], ["updated_at", "2022-07-19 15:19:25.900472"], ["approved", false]]
↳ app/controllers/comments_controller.rb:13:in `create'
TRANSACTION (1.7ms)  COMMIT
↳ app/controllers/comments_controller.rb:13:in `create'

Redirected to localhost:3000/products/4 Completed 302 Found in 26ms (ActiveRecord: 8.2ms | Allocations: 3832)

Started GET “/products/4” for 127.0.0.1 at 2022-07-19 10:19:25 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"4"}
Order Load (1.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 3432)
Rendered comments/_form.html.erb (Duration: 1.6ms | Allocations: 763)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 4], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 10.4ms | Allocations: 3227)
Rendered products/show.html.erb within layouts/application (Duration: 22.8ms | Allocations: 7692)
Rendered layout layouts/application.html.erb (Duration: 35.4ms | Allocations: 15445)

Completed 200 OK in 44ms (Views: 34.4ms | ActiveRecord: 2.7ms | Allocations: 17575)

Started POST “/products/4/comments” for 127.0.0.1 at 2022-07-19 10:19:28 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"TEST COMMENT3", "rate"=>"3"}, "commit"=>"Add comment", "product_id"=>"4"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:10:in `create'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/comments_controller.rb:13:in `create'
Comment Create (0.4ms)  INSERT INTO "comments" ("body", "rate", "user_id", "commentable_type", "commentable_id", "created_at", "updated_at", "approved") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["body", "TEST COMMENT3"], ["rate", 3], ["user_id", 3], ["commentable_type", "Product"], ["commentable_id", 4], ["created_at", "2022-07-19 15:19:28.838485"], ["updated_at", "2022-07-19 15:19:28.838485"], ["approved", false]]
↳ app/controllers/comments_controller.rb:13:in `create'
TRANSACTION (46.5ms)  COMMIT
↳ app/controllers/comments_controller.rb:13:in `create'

Redirected to localhost:3000/products/4 Completed 302 Found in 62ms (ActiveRecord: 47.5ms | Allocations: 3843)

Started GET “/products/4” for 127.0.0.1 at 2022-07-19 10:19:28 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"4"}
Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 3432)
Rendered comments/_form.html.erb (Duration: 1.4ms | Allocations: 763)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 4], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 14.5ms | Allocations: 3970)
Rendered products/show.html.erb within layouts/application (Duration: 31.8ms | Allocations: 8435)
Rendered layout layouts/application.html.erb (Duration: 45.2ms | Allocations: 16132)

Completed 200 OK in 56ms (Views: 44.1ms | ActiveRecord: 2.5ms | Allocations: 18264)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-19 10:19:30 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 12ms (ActiveRecord: 0.7ms | Allocations: 1841)

Started GET “/” for 127.0.0.1 at 2022-07-19 10:19:30 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (2.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.1ms | Allocations: 8586)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1913)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1819)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1819)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.8ms | Allocations: 1789)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1786)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 206.1ms | Allocations: 56981)
Rendered layout layouts/application.html.erb (Duration: 220.8ms | Allocations: 64698)

Completed 200 OK in 231ms (Views: 205.4ms | ActiveRecord: 16.5ms | Allocations: 66051)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-19 10:19:31 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 0.3ms | Allocations: 138)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 2.8ms | Allocations: 1297)
Rendered layout layouts/application.html.erb (Duration: 24.7ms | Allocations: 8977)

Completed 200 OK in 27ms (Views: 25.4ms | ActiveRecord: 0.0ms | Allocations: 9643)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-19 10:19:36 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"support@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "support@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 248ms (ActiveRecord: 0.5ms | Allocations: 2439)

Started GET “/” for 127.0.0.1 at 2022-07-19 10:19:37 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.0ms | Allocations: 8566)
Product Exists? (1.0ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2340)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1497)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1497)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1515)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1497)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1496)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1465)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1465)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1465)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1465)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1467)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.6ms | Allocations: 1465)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1465)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1496)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.6ms | Allocations: 1496)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1467)
Rendered products/index.html.erb within layouts/application (Duration: 143.9ms | Allocations: 49629)
Rendered layout layouts/application.html.erb (Duration: 156.0ms | Allocations: 57350)

Completed 200 OK in 161ms (Views: 143.0ms | ActiveRecord: 14.0ms | Allocations: 58722)

Started GET “/products/4” for 127.0.0.1 at 2022-07-19 10:19:39 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 18.1ms | Allocations: 2301)
Comment Load (0.6ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 27.2ms | Allocations: 4566)
Rendered products/show.html.erb within layouts/application (Duration: 46.2ms | Allocations: 7070)
Rendered layout layouts/application.html.erb (Duration: 63.3ms | Allocations: 14735)

Completed 200 OK in 72ms (Views: 63.2ms | ActiveRecord: 2.5ms | Allocations: 16558)

Started PATCH “/products/4/comments/5” for 127.0.0.1 at 2022-07-19 10:19:40 -0500 Processing by CommentsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"4", "id"=>"5"}
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND "comments"."id" = $3 LIMIT $4  [["commentable_id", 4], ["commentable_type", "Product"], ["id", 5], ["LIMIT", 1]]
↳ app/services/comments/comment_finder_service.rb:8:in `call'
User Load (2.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:47:in `set_comment'
TRANSACTION (0.2ms)  BEGIN
↳ app/services/comments/comment_updater_service.rb:9:in `call'
User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/services/comments/comment_updater_service.rb:9:in `call'
Comment Update (0.3ms)  UPDATE "comments" SET "updated_at" = $1, "approved" = $2 WHERE "comments"."id" = $3  [["updated_at", "2022-07-19 15:19:40.398434"], ["approved", true], ["id", 5]]
↳ app/services/comments/comment_updater_service.rb:9:in `call'
TRANSACTION (1.0ms)  COMMIT
↳ app/services/comments/comment_updater_service.rb:9:in `call'

Redirected to localhost:3000/products/4 Completed 302 Found in 70ms (ActiveRecord: 4.6ms | Allocations: 12340)

Started GET “/products/4” for 127.0.0.1 at 2022-07-19 10:19:40 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"4"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (3.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2402)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 21.2ms | Allocations: 4349)
Rendered products/show.html.erb within layouts/application (Duration: 32.4ms | Allocations: 6966)
Rendered layout layouts/application.html.erb (Duration: 47.8ms | Allocations: 14733)

Completed 200 OK in 60ms (Views: 46.9ms | ActiveRecord: 5.6ms | Allocations: 16731)

Started GET “/products/4” for 127.0.0.1 at 2022-07-19 10:19:45 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 16.7ms | Allocations: 2301)
Comment Load (0.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 40.3ms | Allocations: 4307)
Rendered products/show.html.erb within layouts/application (Duration: 60.1ms | Allocations: 6793)
Rendered layout layouts/application.html.erb (Duration: 77.1ms | Allocations: 14514)

Completed 200 OK in 90ms (Views: 75.7ms | ActiveRecord: 4.6ms | Allocations: 16330)

Started GET “/products/4” for 127.0.0.1 at 2022-07-19 10:20:28 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 51.6ms | Allocations: 15502)
Comment Load (0.6ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 36.8ms | Allocations: 9183)
Rendered products/show.html.erb within layouts/application (Duration: 101.3ms | Allocations: 26038)
Rendered layout layouts/application.html.erb (Duration: 157.8ms | Allocations: 48812)

Completed 200 OK in 220ms (Views: 140.3ms | ActiveRecord: 33.0ms | Allocations: 66290)

Started PATCH “/products/4/comments/4” for 127.0.0.1 at 2022-07-19 10:20:30 -0500 Processing by CommentsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"4", "id"=>"4"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Comment Load (0.7ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND "comments"."id" = $3 LIMIT $4  [["commentable_id", 4], ["commentable_type", "Product"], ["id", 4], ["LIMIT", 1]]
↳ app/services/comments/comment_finder_service.rb:8:in `call'
User Load (2.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:47:in `set_comment'
TRANSACTION (1.1ms)  BEGIN
↳ app/services/comments/comment_updater_service.rb:9:in `call'
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/services/comments/comment_updater_service.rb:9:in `call'
Comment Update (0.4ms)  UPDATE "comments" SET "updated_at" = $1, "approved" = $2 WHERE "comments"."id" = $3  [["updated_at", "2022-07-19 15:20:30.202758"], ["approved", true], ["id", 4]]
↳ app/services/comments/comment_updater_service.rb:9:in `call'
TRANSACTION (20.0ms)  COMMIT
↳ app/services/comments/comment_updater_service.rb:9:in `call'

Redirected to localhost:3000/products/4 Completed 302 Found in 62ms (ActiveRecord: 25.7ms | Allocations: 6829)

Started GET “/products/4” for 127.0.0.1 at 2022-07-19 10:20:30 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"4"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 2409)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (4.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 19.5ms | Allocations: 4093)
Rendered products/show.html.erb within layouts/application (Duration: 35.0ms | Allocations: 6718)
Rendered layout layouts/application.html.erb (Duration: 48.6ms | Allocations: 14488)

Completed 200 OK in 59ms (Views: 44.0ms | ActiveRecord: 7.0ms | Allocations: 16446)

Started GET “/products/4” for 127.0.0.1 at 2022-07-19 10:20:31 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"4"}
Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (15.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2301)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 4], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 24.9ms | Allocations: 4066)
Rendered products/show.html.erb within layouts/application (Duration: 40.1ms | Allocations: 6570)
Rendered layout layouts/application.html.erb (Duration: 54.6ms | Allocations: 14291)

Completed 200 OK in 81ms (Views: 54.8ms | ActiveRecord: 17.1ms | Allocations: 16139)

Started GET “/” for 127.0.0.1 at 2022-07-19 10:20:33 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.9ms | Allocations: 9618)
Product Exists? (0.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2496)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1497)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1515)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1497)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1496)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1465)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1465)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1465)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1465)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1467)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1465)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.6ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1465)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1496)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1496)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1467)
Rendered products/index.html.erb within layouts/application (Duration: 169.9ms | Allocations: 51007)
Rendered layout layouts/application.html.erb (Duration: 189.8ms | Allocations: 58782)

Completed 200 OK in 202ms (Views: 183.1ms | ActiveRecord: 9.1ms | Allocations: 60415)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-19 10:28:23 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 95ms (ActiveRecord: 10.7ms | Allocations: 8640)

Started GET “/” for 127.0.0.1 at 2022-07-19 10:28:24 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 18.7ms | Allocations: 12425)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 32.7ms | Allocations: 8241)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2007)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 1819)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1837)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1789)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1818)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1786)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1818)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 239.8ms | Allocations: 69156)
Rendered layout layouts/application.html.erb (Duration: 284.5ms | Allocations: 91910)

Completed 200 OK in 323ms (Views: 269.0ms | ActiveRecord: 17.6ms | Allocations: 105052)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-19 10:28:25 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 0.4ms | Allocations: 164)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 15.0ms | Allocations: 1559)
Rendered layout layouts/application.html.erb (Duration: 35.9ms | Allocations: 9478)

Completed 200 OK in 43ms (Views: 40.6ms | ActiveRecord: 0.0ms | Allocations: 10797)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-19 10:28:31 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"test1@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2 LIMIT $3  [["user_id", 3], ["status", 0], ["LIMIT", 1]]
↳ app/controllers/sessions_controller.rb:12:in `after_login'
TRANSACTION (1.8ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/models/order.rb:31:in `set_total'
TRANSACTION (0.1ms)  COMMIT
↳ app/controllers/sessions_controller.rb:15:in `after_login'

Completed 302 Found in 259ms (ActiveRecord: 2.9ms | Allocations: 6954)

Started GET “/” for 127.0.0.1 at 2022-07-19 10:28:31 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (1.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.4ms | Allocations: 8512)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 3629)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2638)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2635)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 27.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 5169)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2602)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 268.6ms | Allocations: 82367)
Rendered layout layouts/application.html.erb (Duration: 284.6ms | Allocations: 90135)

Completed 200 OK in 294ms (Views: 262.9ms | ActiveRecord: 23.5ms | Allocations: 92371)

Started GET “/cart” for 127.0.0.1 at 2022-07-19 10:28:33 -0500 Processing by OrdersController#cart as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/views/orders/cart.html.erb:3
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.4ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 10.0ms | Allocations: 3221)
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 27.8ms | Allocations: 12073)

Completed 200 OK in 37ms (Views: 28.2ms | ActiveRecord: 1.4ms | Allocations: 15148)

Started GET “/” for 127.0.0.1 at 2022-07-19 10:28:34 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (4.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.8ms | Allocations: 8627)
Product Exists? (1.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 3526)
Tag Load (7.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.7ms | Allocations: 2635)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 2639)
Tag Load (6.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.0ms | Allocations: 2635)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.6ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 25.0ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 29.5ms | Allocations: 2707)
Tag Load (4.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.8ms | Allocations: 2635)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.0ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 19.9ms | Allocations: 3424)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.3ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2605)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2603)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.7ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 3429)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2602)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.6ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 3429)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 441.4ms | Allocations: 80627)
Rendered layout layouts/application.html.erb (Duration: 461.2ms | Allocations: 88380)

Completed 200 OK in 476ms (Views: 395.3ms | ActiveRecord: 67.8ms | Allocations: 90127)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 10:28:38 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"17", "quantity"=>"10"}, "commit"=>"Add to Cart"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 4], ["product_id", 17], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:52:in `new_or_existing_product'
User Load (1.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:54:in `new_or_existing_product'
TRANSACTION (0.3ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 17], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Create (33.1ms)  INSERT INTO "order_lines" ("order_id", "product_id", "quantity", "total", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["order_id", 4], ["product_id", 17], ["quantity", 10], ["total", "25.0"], ["created_at", "2022-07-19 15:28:38.255447"], ["updated_at", "2022-07-19 15:28:38.255447"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (17.8ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (0.2ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.9ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "25.0"], ["updated_at", "2022-07-19 15:28:38.313360"], ["id", 4]]
↳ app/controllers/order_lines_controller.rb:12:in `create'
TRANSACTION (1.3ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:12:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 92ms (ActiveRecord: 56.4ms | Allocations: 10596)

Started GET “/cart” for 127.0.0.1 at 2022-07-19 10:28:38 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 17], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 20.8ms | Allocations: 5362)
Rendered layout layouts/application.html.erb (Duration: 39.0ms | Allocations: 13235)

Completed 200 OK in 47ms (Views: 38.7ms | ActiveRecord: 1.8ms | Allocations: 15606)

Started PATCH “/order_lines/8” for 127.0.0.1 at 2022-07-19 10:28:40 -0500 Processing by OrderLinesController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"17", "quantity"=>"12"}, "commit"=>"Update", "id"=>"8"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_finder_service.rb:7:in `call'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:61:in `set_order_line'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
TRANSACTION (0.7ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:29:in `update'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 17], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
OrderLine Update (0.7ms)  UPDATE "order_lines" SET "quantity" = $1, "total" = $2, "updated_at" = $3 WHERE "order_lines"."id" = $4  [["quantity", 12], ["total", "30.0"], ["updated_at", "2022-07-19 15:28:40.781466"], ["id", 8]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.6ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "30.0"], ["updated_at", "2022-07-19 15:28:40.790822"], ["id", 4]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (38.4ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:29:in `update'

Redirected to localhost:3000/cart Completed 302 Found in 96ms (ActiveRecord: 41.8ms | Allocations: 9778)

Started GET “/cart” for 127.0.0.1 at 2022-07-19 10:28:40 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 17], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.6ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 23.0ms | Allocations: 5295)
Rendered layout layouts/application.html.erb (Duration: 36.9ms | Allocations: 13171)

Completed 200 OK in 47ms (Views: 36.7ms | ActiveRecord: 1.6ms | Allocations: 15608)

Started GET “/” for 127.0.0.1 at 2022-07-19 10:28:42 -0500 Processing by ProductsController#index as HTML

Order Load (1.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 17.2ms | Allocations: 8583)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 3478)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 3424)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 2603)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 18.3ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2602)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 3429)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 314.2ms | Allocations: 80527)
Rendered layout layouts/application.html.erb (Duration: 327.7ms | Allocations: 88232)

Completed 200 OK in 345ms (Views: 308.4ms | ActiveRecord: 22.9ms | Allocations: 89900)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 10:28:46 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"16", "quantity"=>"5"}, "commit"=>"Add to Cart"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.6ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 4], ["product_id", 16], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:52:in `new_or_existing_product'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:54:in `new_or_existing_product'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 16], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Create (0.5ms)  INSERT INTO "order_lines" ("order_id", "product_id", "quantity", "total", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["order_id", 4], ["product_id", 16], ["quantity", 5], ["total", "15.0"], ["created_at", "2022-07-19 15:28:46.422388"], ["updated_at", "2022-07-19 15:28:46.422388"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (33.0ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (0.2ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/models/order.rb:31:in `set_total'
Order Update (1.1ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "45.0"], ["updated_at", "2022-07-19 15:28:46.464629"], ["id", 4]]
↳ app/controllers/order_lines_controller.rb:12:in `create'
TRANSACTION (7.0ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:12:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 100ms (ActiveRecord: 43.8ms | Allocations: 8410)

Started GET “/cart” for 127.0.0.1 at 2022-07-19 10:28:46 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 17], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 16], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.4ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 21.8ms | Allocations: 6906)
Rendered layout layouts/application.html.erb (Duration: 39.2ms | Allocations: 14668)

Completed 200 OK in 48ms (Views: 38.7ms | ActiveRecord: 1.8ms | Allocations: 17011)

Started PATCH “/order_lines/9” for 127.0.0.1 at 2022-07-19 10:28:49 -0500 Processing by OrderLinesController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"16", "quantity"=>"10"}, "commit"=>"Update", "id"=>"9"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 9], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_finder_service.rb:7:in `call'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:61:in `set_order_line'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
TRANSACTION (0.1ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:29:in `update'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 16], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
OrderLine Update (0.4ms)  UPDATE "order_lines" SET "quantity" = $1, "total" = $2, "updated_at" = $3 WHERE "order_lines"."id" = $4  [["quantity", 10], ["total", "30.0"], ["updated_at", "2022-07-19 15:28:49.961506"], ["id", 9]]
↳ app/controllers/order_lines_controller.rb:29:in `update'
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.3ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "60.0"], ["updated_at", "2022-07-19 15:28:49.966521"], ["id", 4]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (6.6ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:29:in `update'

Redirected to localhost:3000/cart Completed 302 Found in 32ms (ActiveRecord: 8.4ms | Allocations: 7803)

Started GET “/cart” for 127.0.0.1 at 2022-07-19 10:28:49 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 17], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 16], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 20.5ms | Allocations: 6906)
Rendered layout layouts/application.html.erb (Duration: 38.4ms | Allocations: 14667)

Completed 200 OK in 46ms (Views: 38.0ms | ActiveRecord: 1.4ms | Allocations: 17010)

Started GET “/” for 127.0.0.1 at 2022-07-19 10:28:53 -0500 Processing by ProductsController#index as HTML

Order Load (0.9ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.3ms | Allocations: 8563)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (3.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.2ms | Allocations: 3470)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2707)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 3424)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.3ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2603)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (6.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 20.4ms | Allocations: 3429)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 2602)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.8ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.9ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 329.8ms | Allocations: 80495)
Rendered layout layouts/application.html.erb (Duration: 347.8ms | Allocations: 88242)

Completed 200 OK in 359ms (Views: 305.6ms | ActiveRecord: 43.6ms | Allocations: 89888)

Started GET “/cart” for 127.0.0.1 at 2022-07-19 10:28:56 -0500 Processing by OrdersController#cart as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (6.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/views/orders/cart.html.erb:3
Product Load (4.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 17], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 16], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (1.7ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 47.8ms | Allocations: 6932)
Rendered layout layouts/application.html.erb (Duration: 71.4ms | Allocations: 14692)

Completed 200 OK in 99ms (Views: 59.5ms | ActiveRecord: 13.1ms | Allocations: 17023)

Started PATCH “/orders/4” for 127.0.0.1 at 2022-07-19 10:28:56 -0500 Processing by OrdersController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"4"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:56:in `set_order'

Completed 500 Internal Server Error in 47ms (ActiveRecord: 0.3ms | Allocations: 9644)

Zeitwerk::NameError (expected file /home/alvaro/Desktop/ApplaudoStudios/store v.3/app/services/orders/order_updater_service.rb to define constant Orders::OrderUpdaterService, but didn’t

raise Zeitwerk::NameError.new("expected file #{file} to define constant #{cpath}, but didn't", cref.last)
^^^^^):

app/controllers/orders_controller.rb:30:in ‘update’ Started GET “/cart” for 127.0.0.1 at 2022-07-19 10:29:16 -0500 Processing by OrdersController#cart as HTML

Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 17], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 16], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.4ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 80.5ms | Allocations: 21210)
Rendered layout layouts/application.html.erb (Duration: 119.9ms | Allocations: 44046)

Completed 200 OK in 161ms (Views: 108.5ms | ActiveRecord: 19.6ms | Allocations: 53752)

Started PATCH “/orders/4” for 127.0.0.1 at 2022-07-19 10:29:18 -0500 Processing by OrdersController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"4"}
Order Load (2.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
User Load (1.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:56:in `set_order'
TRANSACTION (0.6ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/models/order.rb:31:in `set_total'
Order Update (2.5ms)  UPDATE "orders" SET "date" = $1, "status" = $2, "updated_at" = $3 WHERE "orders"."id" = $4  [["date", "2022-07-19"], ["status", 1], ["updated_at", "2022-07-19 15:29:18.852278"], ["id", 4]]
↳ app/services/orders/order_updater_service.rb:12:in `call'
TRANSACTION (24.6ms)  COMMIT
↳ app/services/orders/order_updater_service.rb:12:in `call'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 17], ["LIMIT", 1]]
↳ app/services/orders/order_updater_service.rb:21:in `block in update_stock'
TRANSACTION (0.2ms)  BEGIN
↳ app/services/orders/order_updater_service.rb:24:in `block in update_stock'
Product Update (0.4ms)  UPDATE "products" SET "stock" = $1, "updated_at" = $2 WHERE "products"."id" = $3  [["stock", 13], ["updated_at", "2022-07-19 15:29:18.887136"], ["id", 17]]
↳ app/services/orders/order_updater_service.rb:24:in `block in update_stock'
TRANSACTION (3.3ms)  COMMIT
↳ app/services/orders/order_updater_service.rb:24:in `block in update_stock'
Product Load (1.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 16], ["LIMIT", 1]]
↳ app/services/orders/order_updater_service.rb:21:in `block in update_stock'
TRANSACTION (0.6ms)  BEGIN
↳ app/services/orders/order_updater_service.rb:24:in `block in update_stock'
Product Update (0.8ms)  UPDATE "products" SET "stock" = $1, "updated_at" = $2 WHERE "products"."id" = $3  [["stock", 40], ["updated_at", "2022-07-19 15:29:18.902900"], ["id", 16]]
↳ app/services/orders/order_updater_service.rb:24:in `block in update_stock'
TRANSACTION (1.2ms)  COMMIT
↳ app/services/orders/order_updater_service.rb:24:in `block in update_stock'

Redirected to localhost:3000/products Completed 302 Found in 87ms (ActiveRecord: 40.3ms | Allocations: 11688)

Started GET “/products” for 127.0.0.1 at 2022-07-19 10:29:18 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 30.6ms | Allocations: 12734)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 35.1ms | Allocations: 10323)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2844)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 17.3ms | Allocations: 5131)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 2603)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2602)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2605)
Tag Load (4.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2635)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 2635)
Rendered products/index.html.erb within layouts/application (Duration: 340.1ms | Allocations: 93658)
Rendered layout layouts/application.html.erb (Duration: 368.9ms | Allocations: 101618)

Completed 200 OK in 379ms (Views: 332.9ms | ActiveRecord: 38.1ms | Allocations: 104170)

Started GET “/cart” for 127.0.0.1 at 2022-07-19 10:29:20 -0500 Processing by OrdersController#cart as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendered orders/cart.html.erb within layouts/application (Duration: 2.7ms | Allocations: 644)
User Load (3.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:18
Rendered layout layouts/application.html.erb (Duration: 27.9ms | Allocations: 9256)

Completed 200 OK in 47ms (Views: 28.0ms | ActiveRecord: 3.6ms | Allocations: 11078)

Started GET “/orders” for 127.0.0.1 at 2022-07-19 10:29:21 -0500 Processing by OrdersController#index as HTML

User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 7.1ms | Allocations: 1292)
OrderLine Load (0.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (1.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 11.5ms | Allocations: 1740)
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 17], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Product Load (1.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 16], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 15.0ms | Allocations: 2608)
Rendered orders/index.html.erb within layouts/application (Duration: 41.2ms | Allocations: 6955)
Rendered layout layouts/application.html.erb (Duration: 59.5ms | Allocations: 14796)

Completed 200 OK in 85ms (Views: 55.8ms | ActiveRecord: 5.8ms | Allocations: 16640)

Started GET “/” for 127.0.0.1 at 2022-07-19 10:29:22 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.6ms | Allocations: 8608)
Product Exists? (1.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 3538)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (4.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2707)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 21.7ms | Allocations: 3425)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 2605)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2603)
Tag Load (3.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 3433)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2602)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2635)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 2635)
Rendered products/index.html.erb within layouts/application (Duration: 315.9ms | Allocations: 80629)
Rendered layout layouts/application.html.erb (Duration: 344.9ms | Allocations: 88326)

Completed 200 OK in 358ms (Views: 313.8ms | ActiveRecord: 32.4ms | Allocations: 89749)

Started GET “/orders” for 127.0.0.1 at 2022-07-19 10:29:28 -0500 Processing by OrdersController#index as HTML

User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (0.9ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (0.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 3.7ms | Allocations: 872)
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (1.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 9.1ms | Allocations: 1732)
OrderLine Load (1.0ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 17], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 16], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 12.9ms | Allocations: 2608)
Rendered orders/index.html.erb within layouts/application (Duration: 29.9ms | Allocations: 6105)
Rendered layout layouts/application.html.erb (Duration: 47.5ms | Allocations: 13811)

Completed 200 OK in 53ms (Views: 43.5ms | ActiveRecord: 5.3ms | Allocations: 15095)

Started GET “/orders/4” for 127.0.0.1 at 2022-07-19 10:29:29 -0500 Processing by OrdersController#show as HTML

Parameters: {"id"=>"4"}
Order Load (1.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/orders/order_finder_service.rb:7:in `call'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:56:in `set_order'
Rendering layout layouts/application.html.erb
Rendering orders/show.html.erb within layouts/application
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 17], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 16], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 14.3ms | Allocations: 2565)
Rendered comments/_form.html.erb (Duration: 16.1ms | Allocations: 3212)
Comment Load (1.1ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 4], ["commentable_type", "Order"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 9.1ms | Allocations: 1950)
Rendered orders/show.html.erb within layouts/application (Duration: 63.4ms | Allocations: 17199)
Rendered layout layouts/application.html.erb (Duration: 88.2ms | Allocations: 25016)

Completed 200 OK in 99ms (Views: 84.2ms | ActiveRecord: 7.9ms | Allocations: 26856)

Started GET “/orders” for 127.0.0.1 at 2022-07-19 10:29:35 -0500 Processing by OrdersController#index as HTML

User Load (3.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/orders_controller.rb:11:in `index'
Rendering layout layouts/application.html.erb
Rendering orders/index.html.erb within layouts/application
Order Load (0.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2  [["user_id", 3], ["status", 1]]
↳ app/views/orders/index.html.erb:3
OrderLine Load (5.0ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 1]]
↳ app/views/orders/_order_card.html.erb:10
Rendered orders/_order_card.html.erb (Duration: 11.9ms | Allocations: 895)
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 2]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 7.9ms | Allocations: 1736)
OrderLine Load (1.0ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 4]]
↳ app/views/orders/_order_card.html.erb:10
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 17], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 16], ["LIMIT", 1]]
↳ app/views/orders/_order_card.html.erb:12
Rendered orders/_order_card.html.erb (Duration: 9.2ms | Allocations: 2608)
Rendered orders/index.html.erb within layouts/application (Duration: 36.1ms | Allocations: 6131)
Rendered layout layouts/application.html.erb (Duration: 58.3ms | Allocations: 13839)

Completed 200 OK in 76ms (Views: 52.0ms | ActiveRecord: 11.6ms | Allocations: 15205)

Started GET “/” for 127.0.0.1 at 2022-07-19 10:32:10 -0500 Processing by ProductsController#index as HTML

Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 30.1ms | Allocations: 12669)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 49.3ms | Allocations: 13870)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2853)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2707)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 5112)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2603)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2603)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2603)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2635)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.1ms | Allocations: 2603)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.6ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 3429)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 45.3ms | Allocations: 2607)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 22.0ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.5ms | Allocations: 2635)
Rendered products/index.html.erb within layouts/application (Duration: 455.9ms | Allocations: 99055)
Rendered layout layouts/application.html.erb (Duration: 504.1ms | Allocations: 121854)

Completed 200 OK in 566ms (Views: 451.5ms | ActiveRecord: 65.8ms | Allocations: 136263)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 10:32:14 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"8", "quantity"=>"80"}, "commit"=>"Add to Cart"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:53:in `new_or_existing_product'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (0.1ms)  ROLLBACK
↳ app/controllers/order_lines_controller.rb:11:in `create'

Redirected to localhost:3000/products Completed 302 Found in 31ms (ActiveRecord: 0.9ms | Allocations: 6783)

Started GET “/products” for 127.0.0.1 at 2022-07-19 10:32:14 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 7.8ms | Allocations: 8627)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 3555)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 3425)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 3429)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 2602)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Rendered products/index.html.erb within layouts/application (Duration: 285.9ms | Allocations: 80670)
Rendered layout layouts/application.html.erb (Duration: 299.4ms | Allocations: 88522)

Completed 200 OK in 306ms (Views: 279.5ms | ActiveRecord: 21.8ms | Allocations: 89937)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 10:32:17 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"8", "quantity"=>"5"}, "commit"=>"Add to Cart"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (1.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:53:in `new_or_existing_product'
TRANSACTION (0.3ms)  BEGIN
↳ app/controllers/order_lines_controller.rb:11:in `create'
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
Order Create (13.2ms)  INSERT INTO "orders" ("date", "user_id", "total", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["date", nil], ["user_id", nil], ["total", "32.5"], ["status", 0], ["created_at", "2022-07-19 15:32:17.815023"], ["updated_at", "2022-07-19 15:32:17.815023"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
OrderLine Create (1.2ms)  INSERT INTO "order_lines" ("order_id", "product_id", "quantity", "total", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["order_id", 7], ["product_id", 8], ["quantity", 5], ["total", "32.5"], ["created_at", "2022-07-19 15:32:17.833508"], ["updated_at", "2022-07-19 15:32:17.833508"]]
↳ app/controllers/order_lines_controller.rb:11:in `create'
TRANSACTION (1.3ms)  COMMIT
↳ app/controllers/order_lines_controller.rb:11:in `create'

Redirected to localhost:3000/cart Completed 302 Found in 58ms (ActiveRecord: 18.0ms | Allocations: 7282)

Started GET “/cart” for 127.0.0.1 at 2022-07-19 10:32:17 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 7]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 7], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 22.2ms | Allocations: 6518)
Rendered layout layouts/application.html.erb (Duration: 40.2ms | Allocations: 14453)

Completed 200 OK in 55ms (Views: 40.3ms | ActiveRecord: 1.9ms | Allocations: 17998)

Started PATCH “/order_lines/10” for 127.0.0.1 at 2022-07-19 10:32:20 -0500 Processing by OrderLinesController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"8", "quantity"=>"80"}, "commit"=>"Update", "id"=>"10"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (1.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 10], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_finder_service.rb:7:in `call'
User Load (1.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:60:in `set_order_line'

Completed 500 Internal Server Error in 46ms (ActiveRecord: 2.8ms | Allocations: 5506)

NameError (undefined local variable or method ‘order_line_params’ for #<OrderLines::OrderLineUpdaterService:0x00007f1ff3eea948 @order_line=#<OrderLine id: 10, order_id: 7, product_id: 8, quantity: 5, total: 0.325e2, created_at: “2022-07-19 15:32:17.833508000 +0000”, updated_at: “2022-07-19 15:32:17.833508000 +0000”>>

@order_line.quantity = order_line_params[:quantity]
                       ^^^^^^^^^^^^^^^^^

Did you mean? @order_line):

app/services/order_lines/order_line_updater_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/order_lines_controller.rb:27:in ‘update’ Started GET “/cart” for 127.0.0.1 at 2022-07-19 10:32:59 -0500 Processing by OrdersController#cart as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (1.6ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 7]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 7], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 120.6ms | Allocations: 19461)
Rendered layout layouts/application.html.erb (Duration: 200.3ms | Allocations: 42320)

Completed 200 OK in 265ms (Views: 186.5ms | ActiveRecord: 23.8ms | Allocations: 51958)

Started PATCH “/order_lines/10” for 127.0.0.1 at 2022-07-19 10:33:02 -0500 Processing by OrderLinesController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"8", "quantity"=>"80"}, "commit"=>"Update", "id"=>"10"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 10], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_finder_service.rb:7:in `call'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:60:in `set_order_line'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
TRANSACTION (0.6ms)  BEGIN
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
TRANSACTION (0.5ms)  ROLLBACK
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'

Redirected to localhost:3000/cart Completed 302 Found in 38ms (ActiveRecord: 2.4ms | Allocations: 8718)

Started GET “/cart” for 127.0.0.1 at 2022-07-19 10:33:02 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 7]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 7], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 17.0ms | Allocations: 5330)
Rendered layout layouts/application.html.erb (Duration: 29.4ms | Allocations: 13199)

Completed 200 OK in 38ms (Views: 29.4ms | ActiveRecord: 1.3ms | Allocations: 15668)

Started PATCH “/order_lines/10” for 127.0.0.1 at 2022-07-19 10:33:07 -0500 Processing by OrderLinesController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"8", "quantity"=>"80"}, "commit"=>"Update", "id"=>"10"}
Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.8ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 10], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_finder_service.rb:7:in `call'
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:60:in `set_order_line'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
TRANSACTION (1.5ms)  BEGIN
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
Product Load (0.8ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
TRANSACTION (0.2ms)  ROLLBACK
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'

Redirected to localhost:3000/cart Completed 302 Found in 25ms (ActiveRecord: 4.8ms | Allocations: 6052)

Started GET “/cart” for 127.0.0.1 at 2022-07-19 10:33:07 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (3.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (8.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 7]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 7], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 26.5ms | Allocations: 5176)
Rendered layout layouts/application.html.erb (Duration: 42.4ms | Allocations: 12881)

Completed 200 OK in 56ms (Views: 33.8ms | ActiveRecord: 13.0ms | Allocations: 15229)

Started PATCH “/order_lines/10” for 127.0.0.1 at 2022-07-19 10:33:10 -0500 Processing by OrderLinesController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"8", "quantity"=>"4"}, "commit"=>"Update", "id"=>"10"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 10], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_finder_service.rb:7:in `call'
User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:60:in `set_order_line'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
TRANSACTION (0.2ms)  BEGIN
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
OrderLine Update (0.6ms)  UPDATE "order_lines" SET "quantity" = $1, "total" = $2, "updated_at" = $3 WHERE "order_lines"."id" = $4  [["quantity", 4], ["total", "26.0"], ["updated_at", "2022-07-19 15:33:10.674253"], ["id", 10]]
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 7]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.5ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "26.0"], ["updated_at", "2022-07-19 15:33:10.684433"], ["id", 7]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (23.5ms)  COMMIT
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'

Redirected to localhost:3000/cart Completed 302 Found in 68ms (ActiveRecord: 27.6ms | Allocations: 8153)

Started GET “/cart” for 127.0.0.1 at 2022-07-19 10:33:10 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (1.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (3.7ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 7]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (5.1ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 7], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 31.2ms | Allocations: 5176)
Rendered layout layouts/application.html.erb (Duration: 54.5ms | Allocations: 12880)

Completed 200 OK in 70ms (Views: 46.1ms | ActiveRecord: 10.9ms | Allocations: 15206)

Started PATCH “/order_lines/10” for 127.0.0.1 at 2022-07-19 10:33:12 -0500 Processing by OrderLinesController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"8", "quantity"=>"5"}, "commit"=>"Update", "id"=>"10"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Load (1.6ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 10], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_finder_service.rb:7:in `call'
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:60:in `set_order_line'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
TRANSACTION (0.1ms)  BEGIN
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
OrderLine Update (0.3ms)  UPDATE "order_lines" SET "quantity" = $1, "total" = $2, "updated_at" = $3 WHERE "order_lines"."id" = $4  [["quantity", 5], ["total", "32.5"], ["updated_at", "2022-07-19 15:33:12.329610"], ["id", 10]]
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 7]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.3ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "32.5"], ["updated_at", "2022-07-19 15:33:12.335607"], ["id", 7]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (1.0ms)  COMMIT
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'

Redirected to localhost:3000/cart Completed 302 Found in 52ms (ActiveRecord: 4.1ms | Allocations: 7799)

Started GET “/cart” for 127.0.0.1 at 2022-07-19 10:33:12 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 7]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 7], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 18.1ms | Allocations: 5176)
Rendered layout layouts/application.html.erb (Duration: 31.3ms | Allocations: 12903)

Completed 200 OK in 41ms (Views: 31.6ms | ActiveRecord: 1.3ms | Allocations: 15263)

Started GET “/” for 127.0.0.1 at 2022-07-19 10:33:13 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 25.6ms | Allocations: 12767)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 25.7ms | Allocations: 10327)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2844)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2635)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.7ms | Allocations: 2712)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 15.9ms | Allocations: 5111)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2602)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:27:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:22:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2635)
Rendered products/index.html.erb within layouts/application (Duration: 281.6ms | Allocations: 93698)
Rendered layout layouts/application.html.erb (Duration: 296.0ms | Allocations: 101636)

Completed 200 OK in 307ms (Views: 271.4ms | ActiveRecord: 26.9ms | Allocations: 104432)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-19 12:19:28 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 33ms (ActiveRecord: 7.1ms | Allocations: 8603)

Started GET “/” for 127.0.0.1 at 2022-07-19 12:19:29 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 19.0ms | Allocations: 12436)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (5.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 41.4ms | Allocations: 8239)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 2007)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.5ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1837)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1818)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 1787)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1787)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1789)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1786)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 1818)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1789)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 1819)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1819)
Rendered products/index.html.erb within layouts/application (Duration: 288.8ms | Allocations: 69165)
Rendered layout layouts/application.html.erb (Duration: 338.0ms | Allocations: 91919)

Completed 200 OK in 372ms (Views: 317.1ms | ActiveRecord: 22.9ms | Allocations: 104977)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-19 12:19:30 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 1.3ms | Allocations: 164)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 5.7ms | Allocations: 1559)
Rendered layout layouts/application.html.erb (Duration: 27.6ms | Allocations: 9478)

Completed 200 OK in 35ms (Views: 33.1ms | ActiveRecord: 0.0ms | Allocations: 10805)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-19 12:19:38 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"alvaro@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 291ms (ActiveRecord: 0.4ms | Allocations: 2781)

Started GET “/” for 127.0.0.1 at 2022-07-19 12:19:38 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 13.5ms | Allocations: 8586)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2386)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1462)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 156.3ms | Allocations: 49695)
Rendered layout layouts/application.html.erb (Duration: 173.6ms | Allocations: 57395)

Completed 200 OK in 179ms (Views: 165.8ms | ActiveRecord: 8.9ms | Allocations: 58797)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:19:41 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 13.2ms | Allocations: 2282)
Rendered products/new.html.erb within layouts/application (Duration: 16.4ms | Allocations: 2366)
Rendered layout layouts/application.html.erb (Duration: 49.7ms | Allocations: 10039)

Completed 200 OK in 52ms (Views: 49.7ms | ActiveRecord: 0.6ms | Allocations: 10340)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:19:46 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 106ms (ActiveRecord: 0.0ms | Allocations: 3622)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f1ff3eaab18 @name=“TEST”, @description=“”, @price=“10”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/forms/product_form.rb:11:in ‘save’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:20:07 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 38.3ms | Allocations: 6061)
Rendered products/new.html.erb within layouts/application (Duration: 39.3ms | Allocations: 6156)
Rendered layout layouts/application.html.erb (Duration: 88.6ms | Allocations: 28942)

Completed 200 OK in 149ms (Views: 76.9ms | ActiveRecord: 23.7ms | Allocations: 35927)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:20:14 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 31ms (ActiveRecord: 0.0ms | Allocations: 5729)

NoMethodError (undefined method ‘save’ for Product:Class):

app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:20:53 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 35.9ms | Allocations: 6061)
Rendered products/new.html.erb within layouts/application (Duration: 36.2ms | Allocations: 6156)
Rendered layout layouts/application.html.erb (Duration: 81.2ms | Allocations: 28940)

Completed 200 OK in 120ms (Views: 79.0ms | ActiveRecord: 8.9ms | Allocations: 35777)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:20:56 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}

Redirected to localhost:3000/products Completed 302 Found in 7ms (ActiveRecord: 0.0ms | Allocations: 1874)

Started GET “/products” for 127.0.0.1 at 2022-07-19 12:20:56 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 29.0ms | Allocations: 12668)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 22.9ms | Allocations: 8991)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1711)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 24.0ms | Allocations: 1494)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1462)
Tag Load (3.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 229.6ms | Allocations: 60843)
Rendered layout layouts/application.html.erb (Duration: 244.7ms | Allocations: 68678)

Completed 200 OK in 282ms (Views: 223.1ms | ActiveRecord: 32.1ms | Allocations: 78314)

Started GET “/products” for 127.0.0.1 at 2022-07-19 12:21:23 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 21.0ms | Allocations: 8609)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2355)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1495)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1512)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1464)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1493)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 207.4ms | Allocations: 49680)
Rendered layout layouts/application.html.erb (Duration: 224.0ms | Allocations: 57357)

Completed 200 OK in 234ms (Views: 212.2ms | ActiveRecord: 14.3ms | Allocations: 58846)

Started GET “/?term=&tag=&commit=Sort” for 127.0.0.1 at 2022-07-19 12:21:32 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"", "tag"=>"", "commit"=>"Sort"}
Order Load (1.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.9ms | Allocations: 8567)
Product Exists? (3.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.9ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2333)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1494)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1493)
Tag Load (4.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.3ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.5ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 160.0ms | Allocations: 49603)
Rendered layout layouts/application.html.erb (Duration: 173.7ms | Allocations: 57268)

Completed 200 OK in 184ms (Views: 153.9ms | ActiveRecord: 22.2ms | Allocations: 58605)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:21:51 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 10.1ms | Allocations: 2281)
Rendered products/new.html.erb within layouts/application (Duration: 10.7ms | Allocations: 2363)
Rendered layout layouts/application.html.erb (Duration: 29.1ms | Allocations: 10036)

Completed 200 OK in 32ms (Views: 29.5ms | ActiveRecord: 0.2ms | Allocations: 10327)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:21:58 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Redirected to localhost:3000/products Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 504)

Started GET “/products” for 127.0.0.1 at 2022-07-19 12:21:58 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.4ms | Allocations: 8567)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (3.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 24.4ms | Allocations: 2335)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 173.9ms | Allocations: 49607)
Rendered layout layouts/application.html.erb (Duration: 188.9ms | Allocations: 57275)

Completed 200 OK in 197ms (Views: 175.1ms | ActiveRecord: 15.2ms | Allocations: 58634)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:22:13 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 9.1ms | Allocations: 2264)
Rendered products/new.html.erb within layouts/application (Duration: 11.1ms | Allocations: 2346)
Rendered layout layouts/application.html.erb (Duration: 29.8ms | Allocations: 10064)

Completed 200 OK in 32ms (Views: 31.1ms | ActiveRecord: 0.2ms | Allocations: 10353)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:22:19 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"HELLLLO", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Redirected to localhost:3000/products Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 484)

Started GET “/products” for 127.0.0.1 at 2022-07-19 12:22:19 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.1ms | Allocations: 8567)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2333)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (3.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1512)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 162.6ms | Allocations: 49605)
Rendered layout layouts/application.html.erb (Duration: 178.4ms | Allocations: 57326)

Completed 200 OK in 185ms (Views: 167.1ms | ActiveRecord: 12.7ms | Allocations: 58680)

Started GET “/products” for 127.0.0.1 at 2022-07-19 12:22:30 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.8ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 20.7ms | Allocations: 8568)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 2333)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1493)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1462)
Tag Load (4.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1493)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1517)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 242.4ms | Allocations: 49627)
Rendered layout layouts/application.html.erb (Duration: 262.8ms | Allocations: 57348)

Completed 200 OK in 278ms (Views: 248.8ms | ActiveRecord: 18.6ms | Allocations: 58686)

Started GET “/products” for 127.0.0.1 at 2022-07-19 12:25:03 -0500

ActiveRecord::SchemaMigration Pluck (1.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#index as HTML

Order Load (3.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 48.5ms | Allocations: 14282)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 689.8ms | Allocations: 293167)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1711)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.5ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 1462)
Tag Load (6.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.4ms | Allocations: 1462)
Tag Load (9.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 991.2ms | Allocations: 350602)
Rendered layout layouts/application.html.erb (Duration: 1175.3ms | Allocations: 405943)

Completed 200 OK in 1423ms (Views: 1123.0ms | ActiveRecord: 79.4ms | Allocations: 429940)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:25:12 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (1.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 28.9ms | Allocations: 3554)
Rendered products/new.html.erb within layouts/application (Duration: 33.5ms | Allocations: 3856)
Rendered layout layouts/application.html.erb (Duration: 61.6ms | Allocations: 11654)

Completed 200 OK in 68ms (Views: 65.1ms | ActiveRecord: 1.4ms | Allocations: 12125)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:25:18 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.0ms | Allocations: 3854)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f62f0cc7720 @name=“TEST”, @description=“”, @price=“10”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/forms/product_form.rb:11:in ‘save’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:28:57 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 37.1ms | Allocations: 6084)
Rendered products/new.html.erb within layouts/application (Duration: 37.9ms | Allocations: 6179)
Rendered layout layouts/application.html.erb (Duration: 88.4ms | Allocations: 28925)

Completed 200 OK in 135ms (Views: 83.5ms | ActiveRecord: 14.7ms | Allocations: 35892)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:29:00 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:31:21 -0500

ActiveRecord::SchemaMigration Pluck (0.9ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 339.0ms | Allocations: 286743)
Rendered products/new.html.erb within layouts/application (Duration: 341.3ms | Allocations: 287301)
Rendered layout layouts/application.html.erb (Duration: 484.5ms | Allocations: 342692)

Completed 200 OK in 534ms (Views: 482.8ms | ActiveRecord: 12.4ms | Allocations: 355519)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:31:24 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 39582ms (ActiveRecord: 0.0ms | Allocations: 25053)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007fbc6f34c0a0 @name=“TEST”, @description=“”, @price=“80”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/forms/product_form.rb:11:in ‘save’ app/services/products/product_creator_service.rb:10:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:33:45 -0500

ActiveRecord::SchemaMigration Pluck (0.9ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 646.9ms | Allocations: 286808)
Rendered products/new.html.erb within layouts/application (Duration: 649.8ms | Allocations: 287366)
Rendered layout layouts/application.html.erb (Duration: 805.7ms | Allocations: 342757)

Completed 200 OK in 898ms (Views: 806.5ms | ActiveRecord: 16.9ms | Allocations: 355594)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:33:48 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 7547ms (ActiveRecord: 0.0ms | Allocations: 25086)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007fe76d584330 @name=“TEST”, @description=“”, @price=“80”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/forms/product_form.rb:11:in ‘save’ app/services/products/product_creator_service.rb:10:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:34:47 -0500

ActiveRecord::SchemaMigration Pluck (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 643.3ms | Allocations: 286830)
Rendered products/new.html.erb within layouts/application (Duration: 645.8ms | Allocations: 287388)
Rendered layout layouts/application.html.erb (Duration: 785.3ms | Allocations: 342947)

Completed 200 OK in 883ms (Views: 785.8ms | ActiveRecord: 12.2ms | Allocations: 355784)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:34:50 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 7294ms (ActiveRecord: 0.0ms | Allocations: 29394)

NoMethodError (undefined method ‘save’ for Product:Class):

app/services/products/product_creator_service.rb:10:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:35:35 -0500

ActiveRecord::SchemaMigration Pluck (2.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 701.7ms | Allocations: 286797)
Rendered products/new.html.erb within layouts/application (Duration: 704.6ms | Allocations: 287355)
Rendered layout layouts/application.html.erb (Duration: 852.8ms | Allocations: 342836)

Completed 200 OK in 907ms (Views: 854.9ms | ActiveRecord: 13.2ms | Allocations: 355682)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:36:23 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 51.7ms | Allocations: 6084)
Rendered products/new.html.erb within layouts/application (Duration: 52.0ms | Allocations: 6179)
Rendered layout layouts/application.html.erb (Duration: 153.1ms | Allocations: 28835)

Completed 200 OK in 214ms (Views: 154.7ms | ActiveRecord: 18.4ms | Allocations: 35738)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:36:25 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 54580ms (ActiveRecord: 0.0ms | Allocations: 47349)

SystemExit (exit):

(byebug):1:in ‘exit’ (byebug):1:in ‘call’ app/services/products/product_creator_service.rb:12:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:37:35 -0500

ActiveRecord::SchemaMigration Pluck (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 563.7ms | Allocations: 286789)
Rendered products/new.html.erb within layouts/application (Duration: 565.9ms | Allocations: 287347)
Rendered layout layouts/application.html.erb (Duration: 724.1ms | Allocations: 342749)

Completed 200 OK in 775ms (Views: 726.1ms | ActiveRecord: 12.1ms | Allocations: 355586)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:37:38 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 184884ms (ActiveRecord: 0.0ms | Allocations: 59635)

SystemExit (exit):

(byebug):1:in ‘exit’ (byebug):1:in ‘validate!’ app/forms/product_form.rb:12:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:41:06 -0500

ActiveRecord::SchemaMigration Pluck (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 516.6ms | Allocations: 286788)
Rendered products/new.html.erb within layouts/application (Duration: 520.2ms | Allocations: 287346)
Rendered layout layouts/application.html.erb (Duration: 670.3ms | Allocations: 342737)

Completed 200 OK in 820ms (Views: 674.3ms | ActiveRecord: 9.9ms | Allocations: 355564)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:41:10 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 23162ms (ActiveRecord: 0.0ms | Allocations: 29639)

NoMethodError (undefined method ‘save’ for Product:Class):

app/services/products/product_creator_service.rb:12:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:42:16 -0500

ActiveRecord::SchemaMigration Pluck (0.9ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (1.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 645.5ms | Allocations: 286797)
Rendered products/new.html.erb within layouts/application (Duration: 648.0ms | Allocations: 287355)
Rendered layout layouts/application.html.erb (Duration: 831.4ms | Allocations: 342744)

Completed 200 OK in 888ms (Views: 833.0ms | ActiveRecord: 14.0ms | Allocations: 355584)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:42:19 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 103158ms (ActiveRecord: 0.0ms | Allocations: 44071)

SystemExit (exit):

(byebug):1:in ‘exit’ (byebug):1:in ‘call’ app/services/products/product_creator_service.rb:12:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:44:32 -0500

ActiveRecord::SchemaMigration Pluck (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 547.5ms | Allocations: 286831)
Rendered products/new.html.erb within layouts/application (Duration: 551.4ms | Allocations: 287389)
Rendered layout layouts/application.html.erb (Duration: 689.9ms | Allocations: 342780)

Completed 200 OK in 755ms (Views: 690.0ms | ActiveRecord: 10.1ms | Allocations: 355613)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:44:37 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 124244ms (ActiveRecord: 0.0ms | Allocations: 49438)

SystemExit (exit):

(byebug):1:in ‘exit’ (byebug):1:in ‘validate!’ app/forms/product_form.rb:14:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:47:14 -0500

ActiveRecord::SchemaMigration Pluck (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (1.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 347.5ms | Allocations: 286760)
Rendered products/new.html.erb within layouts/application (Duration: 349.1ms | Allocations: 287318)
Rendered layout layouts/application.html.erb (Duration: 480.1ms | Allocations: 342707)

Completed 200 OK in 526ms (Views: 479.2ms | ActiveRecord: 12.4ms | Allocations: 355534)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:47:19 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 8396ms (ActiveRecord: 0.0ms | Allocations: 25749)

NoMethodError (undefined method ‘new_record?’ for #<ProductForm:0x00007f9b876f5db8 @name=“”, @description=“”, @price=“80”, @stock=“100”>

new_record? ? :create : :update
^^^^^^^^^^^):

app/forms/product_form.rb:12:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:48:05 -0500

ActiveRecord::SchemaMigration Pluck (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 614.9ms | Allocations: 286856)
Rendered products/new.html.erb within layouts/application (Duration: 620.5ms | Allocations: 287414)
Rendered layout layouts/application.html.erb (Duration: 775.6ms | Allocations: 342810)

Completed 200 OK in 820ms (Views: 776.8ms | ActiveRecord: 9.9ms | Allocations: 355649)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:48:09 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.0ms | Allocations: 2583)

ArgumentError (Unknown validator: ‘UniquenessValidator’):

app/forms/product_form.rb:7:in ‘<class:ProductForm>’ app/forms/product_form.rb:1:in ‘<main>’ app/services/products/product_creator_service.rb:7:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:48:22 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 33.5ms | Allocations: 6081)
Rendered products/new.html.erb within layouts/application (Duration: 46.6ms | Allocations: 6176)
Rendered layout layouts/application.html.erb (Duration: 104.6ms | Allocations: 28922)

Completed 200 OK in 153ms (Views: 103.7ms | ActiveRecord: 12.2ms | Allocations: 35886)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:48:25 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 422 Unprocessable Entity in 5615ms (ActiveRecord: 0.0ms | Allocations: 24135)

ActiveRecord::RecordInvalid (translation missing: en.activemodel.errors.messages.record_invalid):

app/forms/product_form.rb:12:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:48:31 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (2.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 14.2ms | Allocations: 2465)
Rendered products/new.html.erb within layouts/application (Duration: 14.6ms | Allocations: 2547)
Rendered layout layouts/application.html.erb (Duration: 38.9ms | Allocations: 10354)

Completed 200 OK in 40ms (Views: 37.3ms | ActiveRecord: 2.5ms | Allocations: 10687)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:48:48 -0500

ActiveRecord::SchemaMigration Pluck (0.8ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 397.8ms | Allocations: 286794)
Rendered products/new.html.erb within layouts/application (Duration: 400.2ms | Allocations: 287352)
Rendered layout layouts/application.html.erb (Duration: 538.9ms | Allocations: 342743)

Completed 200 OK in 604ms (Views: 540.7ms | ActiveRecord: 11.8ms | Allocations: 355570)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:48:51 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 422 Unprocessable Entity in 6069ms (ActiveRecord: 0.0ms | Allocations: 24439)

ActiveRecord::RecordInvalid (translation missing: en.activemodel.errors.messages.record_invalid):

app/forms/product_form.rb:12:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:48:58 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (1.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 16.4ms | Allocations: 2525)
Rendered products/new.html.erb within layouts/application (Duration: 18.6ms | Allocations: 2607)
Rendered layout layouts/application.html.erb (Duration: 52.8ms | Allocations: 10446)

Completed 200 OK in 57ms (Views: 54.3ms | ActiveRecord: 1.3ms | Allocations: 10787)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:49:28 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}

Completed 500 Internal Server Error in 10435ms (ActiveRecord: 0.0ms | Allocations: 9295)

NoMethodError (undefined method ‘save’ for Product:Class):

app/services/products/product_creator_service.rb:12:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:30:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 12:49:59 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 26.4ms | Allocations: 6071)
Rendered products/new.html.erb within layouts/application (Duration: 27.2ms | Allocations: 6166)
Rendered layout layouts/application.html.erb (Duration: 70.1ms | Allocations: 28893)

Completed 200 OK in 99ms (Views: 69.3ms | ActiveRecord: 8.6ms | Allocations: 35846)

Started POST “/products” for 127.0.0.1 at 2022-07-19 12:50:01 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}
TRANSACTION (0.3ms)  BEGIN
↳ app/services/products/product_creator_service.rb:12:in `call'
Product Create (0.6ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "TEST"], ["description", ""], ["price", "80.0"], ["stock", 100], ["created_at", "2022-07-19 17:50:08.938066"], ["updated_at", "2022-07-19 17:50:08.938066"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:12:in `call'
TRANSACTION (4.4ms)  COMMIT
↳ app/services/products/product_creator_service.rb:12:in `call'

Redirected to localhost:3000/products Completed 302 Found in 7331ms (ActiveRecord: 5.2ms | Allocations: 10869)

Started GET “/products” for 127.0.0.1 at 2022-07-19 12:50:08 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (3.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 32.7ms | Allocations: 13425)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 53.6ms | Allocations: 12154)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1711)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 1496)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 1494)
Tag Load (4.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 352.5ms | Allocations: 67003)
Rendered layout layouts/application.html.erb (Duration: 375.3ms | Allocations: 74839)

Completed 200 OK in 442ms (Views: 349.9ms | ActiveRecord: 38.2ms | Allocations: 88323)

Started GET “/products” for 127.0.0.1 at 2022-07-19 14:47:09 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 37.0ms | Allocations: 12464)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 28.3ms | Allocations: 11492)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1712)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1464)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 211.1ms | Allocations: 66241)
Rendered layout layouts/application.html.erb (Duration: 247.5ms | Allocations: 89005)

Completed 200 OK in 352ms (Views: 237.6ms | ActiveRecord: 22.7ms | Allocations: 105866)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 14:47:15 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 10.1ms | Allocations: 2440)
Rendered products/new.html.erb within layouts/application (Duration: 12.4ms | Allocations: 2524)
Rendered layout layouts/application.html.erb (Duration: 27.5ms | Allocations: 10199)

Completed 200 OK in 32ms (Views: 30.8ms | ActiveRecord: 0.5ms | Allocations: 10537)

Started POST “/products” for 127.0.0.1 at 2022-07-19 14:47:20 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"3", "stock"=>"10"}, "commit"=>"Add Product"}

Completed 422 Unprocessable Entity in 14ms (ActiveRecord: 0.0ms | Allocations: 2503)

ActiveRecord::RecordInvalid (translation missing: en.activemodel.errors.messages.record_invalid):

app/forms/product_form.rb:11:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:26:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 14:47:21 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 7.7ms | Allocations: 2493)
Rendered products/new.html.erb within layouts/application (Duration: 9.4ms | Allocations: 2575)
Rendered layout layouts/application.html.erb (Duration: 26.9ms | Allocations: 10413)

Completed 200 OK in 29ms (Views: 27.4ms | ActiveRecord: 0.7ms | Allocations: 10748)

Started GET “/” for 127.0.0.1 at 2022-07-19 14:48:32 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (3.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 16.4ms | Allocations: 8591)
Product Exists? (1.1ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 2370)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1512)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1493)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1461)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 200.1ms | Allocations: 51214)
Rendered layout layouts/application.html.erb (Duration: 227.3ms | Allocations: 58914)

Completed 200 OK in 242ms (Views: 216.0ms | ActiveRecord: 14.6ms | Allocations: 60300)

Started GET “/” for 127.0.0.1 at 2022-07-19 14:48:33 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 17.8ms | Allocations: 8568)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.2ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (3.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 2333)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1494)
Tag Load (3.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 195.3ms | Allocations: 51141)
Rendered layout layouts/application.html.erb (Duration: 211.1ms | Allocations: 58806)

Completed 200 OK in 221ms (Views: 195.5ms | ActiveRecord: 17.6ms | Allocations: 60163)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 14:48:36 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 9.5ms | Allocations: 2258)
Rendered products/new.html.erb within layouts/application (Duration: 12.5ms | Allocations: 2340)
Rendered layout layouts/application.html.erb (Duration: 36.9ms | Allocations: 10014)

Completed 200 OK in 40ms (Views: 39.5ms | ActiveRecord: 0.3ms | Allocations: 10303)

Started POST “/products” for 127.0.0.1 at 2022-07-19 14:48:41 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"3", "stock"=>"10"}, "commit"=>"Add Product"}

Completed 422 Unprocessable Entity in 5ms (ActiveRecord: 0.0ms | Allocations: 1257)

ActiveRecord::RecordInvalid (translation missing: en.activemodel.errors.messages.record_invalid):

app/forms/product_form.rb:11:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:26:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 14:48:41 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 8.9ms | Allocations: 2240)
Rendered products/new.html.erb within layouts/application (Duration: 9.4ms | Allocations: 2322)
Rendered layout layouts/application.html.erb (Duration: 26.7ms | Allocations: 10051)

Completed 200 OK in 29ms (Views: 27.8ms | ActiveRecord: 0.2ms | Allocations: 10338)

Started GET “/” for 127.0.0.1 at 2022-07-19 14:49:05 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.6ms | Allocations: 8568)
Product Exists? (1.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 2333)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1494)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1515)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1493)
Tag Load (4.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1462)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1462)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1464)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 1462)
Tag Load (6.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1494)
Tag Load (4.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1493)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1461)
Tag Load (4.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1493)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1494)
Tag Load (4.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 271.3ms | Allocations: 51144)
Rendered layout layouts/application.html.erb (Duration: 302.1ms | Allocations: 58865)

Completed 200 OK in 317ms (Views: 259.3ms | ActiveRecord: 44.1ms | Allocations: 60209)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 14:55:14 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 23.5ms | Allocations: 5669)
Rendered products/new.html.erb within layouts/application (Duration: 25.0ms | Allocations: 5764)
Rendered layout layouts/application.html.erb (Duration: 75.5ms | Allocations: 28526)

Completed 200 OK in 124ms (Views: 78.8ms | ActiveRecord: 8.3ms | Allocations: 38220)

Started POST “/products” for 127.0.0.1 at 2022-07-19 14:55:20 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "TEST"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:12:in `unique_name'
TRANSACTION (0.9ms)  BEGIN
↳ app/services/products/product_creator_service.rb:11:in `call'
Product Create (0.7ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "TEST"], ["description", ""], ["price", "80.0"], ["stock", 100], ["created_at", "2022-07-19 19:55:20.078039"], ["updated_at", "2022-07-19 19:55:20.078039"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:11:in `call'
TRANSACTION (10.8ms)  COMMIT
↳ app/services/products/product_creator_service.rb:11:in `call'

Redirected to localhost:3000/products Completed 302 Found in 44ms (ActiveRecord: 12.9ms | Allocations: 5188)

Started GET “/products” for 127.0.0.1 at 2022-07-19 14:55:20 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 18.9ms | Allocations: 12401)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 20.6ms | Allocations: 8651)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1711)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1493)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1461)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 223.4ms | Allocations: 63264)
Rendered layout layouts/application.html.erb (Duration: 239.4ms | Allocations: 71044)

Completed 200 OK in 270ms (Views: 223.0ms | ActiveRecord: 18.7ms | Allocations: 80072)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 14:55:29 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 10.9ms | Allocations: 2401)
Rendered products/new.html.erb within layouts/application (Duration: 12.3ms | Allocations: 2483)
Rendered layout layouts/application.html.erb (Duration: 32.9ms | Allocations: 10158)

Completed 200 OK in 37ms (Views: 35.1ms | ActiveRecord: 0.4ms | Allocations: 10485)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 14:55:58 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 10.3ms | Allocations: 2222)
Rendered products/new.html.erb within layouts/application (Duration: 10.6ms | Allocations: 2304)
Rendered layout layouts/application.html.erb (Duration: 28.4ms | Allocations: 9977)

Completed 200 OK in 30ms (Views: 29.1ms | ActiveRecord: 0.3ms | Allocations: 10263)

Started POST “/products” for 127.0.0.1 at 2022-07-19 14:55:59 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "TEST"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:12:in `unique_name'
TRANSACTION (0.1ms)  BEGIN
↳ app/services/products/product_creator_service.rb:11:in `call'
Product Create (0.3ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "TEST"], ["description", ""], ["price", "80.0"], ["stock", 100], ["created_at", "2022-07-19 19:55:59.710418"], ["updated_at", "2022-07-19 19:55:59.710418"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:11:in `call'
TRANSACTION (7.9ms)  COMMIT
↳ app/services/products/product_creator_service.rb:11:in `call'

Redirected to localhost:3000/products Completed 302 Found in 27ms (ActiveRecord: 8.6ms | Allocations: 3088)

Started GET “/products” for 127.0.0.1 at 2022-07-19 14:55:59 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 13.8ms | Allocations: 8587)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 2333)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1496)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1462)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1464)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1462)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1493)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 204.0ms | Allocations: 54254)
Rendered layout layouts/application.html.erb (Duration: 224.0ms | Allocations: 61975)

Completed 200 OK in 248ms (Views: 213.7ms | ActiveRecord: 12.0ms | Allocations: 63353)

Started GET “/products” for 127.0.0.1 at 2022-07-19 14:56:47 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.0ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 31.9ms | Allocations: 12657)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.1ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 46.3ms | Allocations: 12340)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1711)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.5ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 1494)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1464)
Tag Load (4.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1469)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1464)
Tag Load (3.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1464)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 417.3ms | Allocations: 70682)
Rendered layout layouts/application.html.erb (Duration: 471.1ms | Allocations: 93446)

Completed 200 OK in 534ms (Views: 430.6ms | ActiveRecord: 56.6ms | Allocations: 107863)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 14:56:50 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 7.1ms | Allocations: 2415)
Rendered products/new.html.erb within layouts/application (Duration: 7.4ms | Allocations: 2499)
Rendered layout layouts/application.html.erb (Duration: 27.0ms | Allocations: 10174)

Completed 200 OK in 30ms (Views: 28.3ms | ActiveRecord: 0.5ms | Allocations: 10513)

Started POST “/products” for 127.0.0.1 at 2022-07-19 14:56:55 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "TEST"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:13:in `unique_name'
CACHE Product Load (0.0ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "TEST"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:15:in `unique_name'
TRANSACTION (0.7ms)  BEGIN
↳ app/services/products/product_creator_service.rb:11:in `call'
Product Create (1.0ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "TEST"], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-19 19:56:55.849269"], ["updated_at", "2022-07-19 19:56:55.849269"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:11:in `call'
TRANSACTION (7.1ms)  COMMIT
↳ app/services/products/product_creator_service.rb:11:in `call'

Redirected to localhost:3000/products Completed 302 Found in 39ms (ActiveRecord: 9.2ms | Allocations: 5222)

Started GET “/products” for 127.0.0.1 at 2022-07-19 14:56:55 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.4ms | Allocations: 8633)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2418)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 21.1ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 179.8ms | Allocations: 55930)
Rendered layout layouts/application.html.erb (Duration: 195.8ms | Allocations: 63756)

Completed 200 OK in 201ms (Views: 188.4ms | ActiveRecord: 8.5ms | Allocations: 65251)

Started POST “/products” for 127.0.0.1 at 2022-07-19 14:57:14 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "TEST"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:14:in `unique_name'
CACHE Product Load (0.0ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "TEST"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:16:in `unique_name'
TRANSACTION (0.1ms)  BEGIN
↳ app/services/products/product_creator_service.rb:11:in `call'
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "TEST"], ["description", ""], ["price", "10.0"], ["stock", 100], ["created_at", "2022-07-19 19:57:14.730128"], ["updated_at", "2022-07-19 19:57:14.730128"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:11:in `call'
TRANSACTION (1.3ms)  COMMIT
↳ app/services/products/product_creator_service.rb:11:in `call'

Redirected to localhost:3000/products Completed 302 Found in 38ms (ActiveRecord: 5.8ms | Allocations: 11908)

Started GET “/products” for 127.0.0.1 at 2022-07-19 14:57:14 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 24.6ms | Allocations: 12664)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 30.5ms | Allocations: 12324)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1711)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1464)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1527)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 246.8ms | Allocations: 71857)
Rendered layout layouts/application.html.erb (Duration: 322.1ms | Allocations: 94668)

Completed 200 OK in 355ms (Views: 306.3ms | ActiveRecord: 24.1ms | Allocations: 104487)

Started GET “/products” for 127.0.0.1 at 2022-07-19 14:57:37 -0500 Processing by ProductsController#index as HTML

Order Load (2.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 24.5ms | Allocations: 12670)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 48.3ms | Allocations: 12340)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1711)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1464)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1464)
Tag Load (5.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 1464)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1462)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1462)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1464)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 318.3ms | Allocations: 73767)
Rendered layout layouts/application.html.erb (Duration: 355.2ms | Allocations: 96531)

Completed 200 OK in 437ms (Views: 321.1ms | ActiveRecord: 47.7ms | Allocations: 110941)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 14:57:40 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (4.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 16.7ms | Allocations: 2433)
Rendered products/new.html.erb within layouts/application (Duration: 17.1ms | Allocations: 2517)
Rendered layout layouts/application.html.erb (Duration: 37.9ms | Allocations: 10192)

Completed 200 OK in 40ms (Views: 34.3ms | ActiveRecord: 4.5ms | Allocations: 10531)

Started POST “/products” for 127.0.0.1 at 2022-07-19 14:57:45 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "TEST"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:14:in `unique_name'
CACHE Product Load (0.0ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "TEST"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:15:in `unique_name'
CACHE Product Load (0.0ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "TEST"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:17:in `unique_name'
TRANSACTION (0.6ms)  BEGIN
↳ app/services/products/product_creator_service.rb:11:in `call'
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "TEST"], ["description", ""], ["price", "1.0"], ["stock", 1], ["created_at", "2022-07-19 19:57:45.299925"], ["updated_at", "2022-07-19 19:57:45.299925"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:11:in `call'
TRANSACTION (7.2ms)  COMMIT
↳ app/services/products/product_creator_service.rb:11:in `call'

Redirected to localhost:3000/products Completed 302 Found in 37ms (ActiveRecord: 8.8ms | Allocations: 5692)

Started GET “/products” for 127.0.0.1 at 2022-07-19 14:57:45 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (4.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 12.0ms | Allocations: 8633)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 21.7ms | Allocations: 2418)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1494)
Tag Load (2.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1462)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1462)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1462)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1462)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1463)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1461)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 234.7ms | Allocations: 59003)
Rendered layout layouts/application.html.erb (Duration: 249.1ms | Allocations: 66829)

Completed 200 OK in 256ms (Views: 231.7ms | ActiveRecord: 19.4ms | Allocations: 68290)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 14:58:30 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 30.1ms | Allocations: 6096)
Rendered products/new.html.erb within layouts/application (Duration: 35.1ms | Allocations: 6191)
Rendered layout layouts/application.html.erb (Duration: 91.0ms | Allocations: 28974)

Completed 200 OK in 117ms (Views: 87.4ms | ActiveRecord: 8.8ms | Allocations: 35938)

Started POST “/products” for 127.0.0.1 at 2022-07-19 14:58:35 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "TEST"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:12:in `unique_name'

Completed 422 Unprocessable Entity in 11ms (ActiveRecord: 0.4ms | Allocations: 3480)

ActiveRecord::RecordInvalid (translation missing: en.activemodel.errors.messages.record_invalid):

app/forms/product_form.rb:16:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:26:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 14:58:36 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 14.1ms | Allocations: 2362)
Rendered products/new.html.erb within layouts/application (Duration: 14.4ms | Allocations: 2444)
Rendered layout layouts/application.html.erb (Duration: 31.4ms | Allocations: 10281)

Completed 200 OK in 33ms (Views: 31.1ms | ActiveRecord: 0.8ms | Allocations: 10607)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:00:23 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 26.5ms | Allocations: 6085)
Rendered products/new.html.erb within layouts/application (Duration: 26.9ms | Allocations: 6180)
Rendered layout layouts/application.html.erb (Duration: 71.5ms | Allocations: 28943)

Completed 200 OK in 99ms (Views: 70.8ms | ActiveRecord: 7.8ms | Allocations: 35779)

Started GET “/” for 127.0.0.1 at 2022-07-19 15:00:24 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.8ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 34.0ms | Allocations: 12665)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (2.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 30.5ms | Allocations: 8988)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1711)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1495)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1462)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1464)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1462)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1461)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1464)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 271.0ms | Allocations: 70063)
Rendered layout layouts/application.html.erb (Duration: 292.1ms | Allocations: 77897)

Completed 200 OK in 368ms (Views: 264.3ms | ActiveRecord: 44.5ms | Allocations: 87838)

Started GET “/products/41/edit” for 127.0.0.1 at 2022-07-19 15:00:28 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"41"}
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 41], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (2.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:64:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 3.3ms | Allocations: 1469)
Rendered products/edit.html.erb within layouts/application (Duration: 6.6ms | Allocations: 1716)
Rendered layout layouts/application.html.erb (Duration: 29.9ms | Allocations: 9491)

Completed 200 OK in 51ms (Views: 31.4ms | ActiveRecord: 3.2ms | Allocations: 12335)

Started PATCH “/products/41” for 127.0.0.1 at 2022-07-19 15:00:29 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"TEST", "description"=>"", "price"=>"80.0", "stock"=>"100"}, "commit"=>"Update", "id"=>"41"}
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 41], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:64:in `set_product'

Completed 500 Internal Server Error in 15ms (ActiveRecord: 1.0ms | Allocations: 3246)

ArgumentError (When assigning attributes, you must pass a hash as an argument, ProductForm passed.):

app/services/products/product_updater_service.rb:13:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:39:in ‘update’ Started GET “/products/41/edit” for 127.0.0.1 at 2022-07-19 15:01:48 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"41"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 41], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:64:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 5.5ms | Allocations: 1580)
Rendered products/edit.html.erb within layouts/application (Duration: 6.5ms | Allocations: 1675)
Rendered layout layouts/application.html.erb (Duration: 47.0ms | Allocations: 24454)

Completed 200 OK in 99ms (Views: 49.3ms | ActiveRecord: 8.4ms | Allocations: 37622)

Started GET “/” for 127.0.0.1 at 2022-07-19 15:01:50 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 27.0ms | Allocations: 12666)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 27.3ms | Allocations: 8756)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1711)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (5.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1517)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1464)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1462)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1462)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1461)
Tag Load (7.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.2ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 311.6ms | Allocations: 69787)
Rendered layout layouts/application.html.erb (Duration: 341.7ms | Allocations: 77604)

Completed 200 OK in 384ms (Views: 306.4ms | ActiveRecord: 42.9ms | Allocations: 87145)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:01:52 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (1.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 9.4ms | Allocations: 2409)
Rendered products/new.html.erb within layouts/application (Duration: 13.1ms | Allocations: 2493)
Rendered layout layouts/application.html.erb (Duration: 30.3ms | Allocations: 10168)

Completed 200 OK in 32ms (Views: 29.8ms | ActiveRecord: 1.6ms | Allocations: 10505)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:01:56 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (1.1ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "NEW"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:12:in `unique_name'

Completed 500 Internal Server Error in 14ms (ActiveRecord: 1.1ms | Allocations: 3604)

NoMethodError (undefined method ‘name’ for nil:NilClass

errors.add(:unique_name, 'Name already taken') if name == Product.find_by(name: name).name
                                                                                     ^^^^^):

app/forms/product_form.rb:12:in ‘unique_name’ app/forms/product_form.rb:16:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:26:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:02:16 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 26.9ms | Allocations: 6079)
Rendered products/new.html.erb within layouts/application (Duration: 31.2ms | Allocations: 6174)
Rendered layout layouts/application.html.erb (Duration: 86.2ms | Allocations: 28958)

Completed 200 OK in 116ms (Views: 86.0ms | ActiveRecord: 8.4ms | Allocations: 35911)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:02:20 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"new", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "new"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:12:in `unique_name'

Completed 500 Internal Server Error in 44ms (ActiveRecord: 0.4ms | Allocations: 9806)

NoMethodError (undefined method ‘name’ for nil:NilClass

errors.add(:unique_name, 'Name already taken') if name == Product.find_by(name: name).name
                                                                                     ^^^^^):

app/forms/product_form.rb:12:in ‘unique_name’ app/forms/product_form.rb:16:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:26:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:02:38 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 10.7ms | Allocations: 2413)
Rendered products/new.html.erb within layouts/application (Duration: 11.7ms | Allocations: 2495)
Rendered layout layouts/application.html.erb (Duration: 47.8ms | Allocations: 10332)

Completed 200 OK in 51ms (Views: 48.7ms | ActiveRecord: 0.4ms | Allocations: 10658)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:02:39 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"new", "description"=>"", "price"=>"80", "stock"=>"100"}, "commit"=>"Add Product"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "new"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:12:in `unique_name'

Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.3ms | Allocations: 2195)

NoMethodError (undefined method ‘name’ for nil:NilClass

errors.add(:unique_name, 'Name already taken') if name == Product.find_by(name: name).name
                                                                                     ^^^^^):

app/forms/product_form.rb:12:in ‘unique_name’ app/forms/product_form.rb:16:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:26:in ‘create’ Started GET “/” for 127.0.0.1 at 2022-07-19 15:02:42 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 37.8ms | Allocations: 12687)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 33.1ms | Allocations: 8987)
Tag Load (4.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 1711)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1494)
Tag Load (4.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1464)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1464)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 1494)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 361.1ms | Allocations: 70049)
Rendered layout layouts/application.html.erb (Duration: 404.2ms | Allocations: 77883)

Completed 200 OK in 480ms (Views: 372.8ms | ActiveRecord: 42.1ms | Allocations: 87514)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:02:45 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 17.2ms | Allocations: 2384)
Rendered products/new.html.erb within layouts/application (Duration: 19.0ms | Allocations: 2466)
Rendered layout layouts/application.html.erb (Duration: 74.0ms | Allocations: 10141)

Completed 200 OK in 77ms (Views: 76.2ms | ActiveRecord: 0.2ms | Allocations: 10469)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:02:48 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"new", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (1.1ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "new"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:12:in `unique_name'

Completed 500 Internal Server Error in 19ms (ActiveRecord: 1.1ms | Allocations: 2263)

NoMethodError (undefined method ‘name’ for nil:NilClass

errors.add(:unique_name, 'Name already taken') if name == Product.find_by(name: name).name
                                                                                     ^^^^^):

app/forms/product_form.rb:12:in ‘unique_name’ app/forms/product_form.rb:16:in ‘validate!’ app/services/products/product_creator_service.rb:9:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:26:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:03:44 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 34.9ms | Allocations: 6067)
Rendered products/new.html.erb within layouts/application (Duration: 35.2ms | Allocations: 6162)
Rendered layout layouts/application.html.erb (Duration: 92.3ms | Allocations: 28945)

Completed 200 OK in 138ms (Views: 86.9ms | ActiveRecord: 12.9ms | Allocations: 35902)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:03:48 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"new", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "new"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:12:in `unique_name'
TRANSACTION (0.3ms)  BEGIN
↳ app/services/products/product_creator_service.rb:11:in `call'
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "new"], ["description", ""], ["price", "1.0"], ["stock", 1], ["created_at", "2022-07-19 20:03:48.448297"], ["updated_at", "2022-07-19 20:03:48.448297"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:11:in `call'
TRANSACTION (25.1ms)  COMMIT
↳ app/services/products/product_creator_service.rb:11:in `call'

Redirected to localhost:3000/products Completed 302 Found in 50ms (ActiveRecord: 26.0ms | Allocations: 5128)

Started GET “/products” for 127.0.0.1 at 2022-07-19 15:03:48 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 31.5ms | Allocations: 12680)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 22.5ms | Allocations: 8982)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1711)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1462)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1462)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1461)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 326.7ms | Allocations: 71578)
Rendered layout layouts/application.html.erb (Duration: 344.5ms | Allocations: 79357)

Completed 200 OK in 382ms (Views: 327.5ms | ActiveRecord: 25.7ms | Allocations: 88916)

Started GET “/products” for 127.0.0.1 at 2022-07-19 15:09:11 -0500 Processing by ProductsController#index as HTML

Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 46.0ms | Allocations: 12523)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 61.6ms | Allocations: 11498)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 1711)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.6ms | Allocations: 1499)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1462)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1462)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1462)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1461)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1464)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 363.1ms | Allocations: 75538)
Rendered layout layouts/application.html.erb (Duration: 413.1ms | Allocations: 98302)

Completed 200 OK in 533ms (Views: 394.8ms | ActiveRecord: 30.6ms | Allocations: 115259)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:09:14 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 13.2ms | Allocations: 2412)
Rendered products/new.html.erb within layouts/application (Duration: 14.2ms | Allocations: 2496)
Rendered layout layouts/application.html.erb (Duration: 39.9ms | Allocations: 10171)

Completed 200 OK in 42ms (Views: 41.1ms | ActiveRecord: 0.6ms | Allocations: 10510)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:09:18 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (1.1ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'

Completed 500 Internal Server Error in 36ms (ActiveRecord: 1.1ms | Allocations: 3931)

NoMethodError (undefined method ‘valid?’ for #<Products::ProductCreatorService:0x00007f0399b8bc00 @params=#<ActionController::Parameters {“name”=>“”, “description”=>“”, “price”=>“1”, “stock”=>“1”} permitted: true>, @form=#<ProductForm:0x00007f0399b9a2c8 @name=“”, @description=“”, @price=“1”, @stock=“1”, @validation_context=nil, @errors=#<ActiveModel::Errors [#<ActiveModel::Error attribute=name, type=blank, options={}>, #<ActiveModel::Error attribute=unique_name, type=Name already taken, options={}>]>>>

raise ActiveRecord::RecordInvalid, self unless valid?
                                               ^^^^^^):

app/services/products/product_creator_service.rb:11:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:26:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:09:35 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 24.0ms | Allocations: 6073)
Rendered products/new.html.erb within layouts/application (Duration: 24.9ms | Allocations: 6168)
Rendered layout layouts/application.html.erb (Duration: 97.5ms | Allocations: 28952)

Completed 200 OK in 137ms (Views: 96.0ms | ActiveRecord: 9.1ms | Allocations: 35936)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:09:38 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'

Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.3ms | Allocations: 4275)

NoMethodError (undefined method ‘valid?’ for #<Products::ProductCreatorService:0x00007f0399c250f8 @params=#<ActionController::Parameters {“name”=>“”, “description”=>“”, “price”=>“1”, “stock”=>“1”} permitted: true>, @form=#<ProductForm:0x00007f0399c315b0 @name=“”, @description=“”, @price=“1”, @stock=“1”, @validation_context=nil, @errors=#<ActiveModel::Errors [#<ActiveModel::Error attribute=name, type=blank, options={}>, #<ActiveModel::Error attribute=unique_name, type=Name already taken, options={}>]>>>

raise ActiveRecord::RecordInvalid, @form unless valid?
                                                ^^^^^^):

app/services/products/product_creator_service.rb:11:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:26:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:09:53 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 22.2ms | Allocations: 6087)
Rendered products/new.html.erb within layouts/application (Duration: 23.5ms | Allocations: 6182)
Rendered layout layouts/application.html.erb (Duration: 77.1ms | Allocations: 29003)

Completed 200 OK in 106ms (Views: 81.5ms | ActiveRecord: 8.6ms | Allocations: 35885)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:09:54 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (2.0ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 12.3ms | Allocations: 6605)
Rendered products/new.html.erb within layouts/application (Duration: 13.7ms | Allocations: 6696)
Rendered layout layouts/application.html.erb (Duration: 30.4ms | Allocations: 14500)

Completed 200 OK in 44ms (Views: 32.4ms | ActiveRecord: 2.8ms | Allocations: 17452)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:09:56 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (1.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 15.4ms | Allocations: 5534)
Rendered products/new.html.erb within layouts/application (Duration: 16.2ms | Allocations: 5619)
Rendered layout layouts/application.html.erb (Duration: 31.1ms | Allocations: 13277)

Completed 200 OK in 41ms (Views: 30.3ms | ActiveRecord: 1.9ms | Allocations: 14473)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:10:07 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"AAAAAAA", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "AAAAAAA"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
TRANSACTION (0.7ms)  BEGIN
↳ app/services/products/product_creator_service.rb:9:in `call'
Product Create (0.7ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "AAAAAAA"], ["description", ""], ["price", "1.0"], ["stock", 1], ["created_at", "2022-07-19 20:10:07.931524"], ["updated_at", "2022-07-19 20:10:07.931524"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:9:in `call'
TRANSACTION (3.5ms)  COMMIT
↳ app/services/products/product_creator_service.rb:9:in `call'

Redirected to localhost:3000/products Completed 302 Found in 31ms (ActiveRecord: 5.4ms | Allocations: 3340)

Started GET “/products” for 127.0.0.1 at 2022-07-19 15:10:07 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 40.8ms | Allocations: 11797)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 21.6ms | Allocations: 8982)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1711)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1512)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1464)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1464)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1462)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 228.1ms | Allocations: 72218)
Rendered layout layouts/application.html.erb (Duration: 242.5ms | Allocations: 80052)

Completed 200 OK in 280ms (Views: 225.6ms | ActiveRecord: 26.1ms | Allocations: 89642)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:10:16 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 12.9ms | Allocations: 2383)
Rendered products/new.html.erb within layouts/application (Duration: 17.7ms | Allocations: 2465)
Rendered layout layouts/application.html.erb (Duration: 35.3ms | Allocations: 10140)

Completed 200 OK in 41ms (Views: 39.7ms | ActiveRecord: 0.4ms | Allocations: 10467)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:10:22 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEWWWW", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "NEWWWW"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
TRANSACTION (0.2ms)  BEGIN
↳ app/services/products/product_creator_service.rb:9:in `call'
Product Create (0.8ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "NEWWWW"], ["description", ""], ["price", "1.0"], ["stock", 1], ["created_at", "2022-07-19 20:10:22.582831"], ["updated_at", "2022-07-19 20:10:22.582831"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:9:in `call'
TRANSACTION (4.6ms)  COMMIT
↳ app/services/products/product_creator_service.rb:9:in `call'

Redirected to localhost:3000/products Completed 302 Found in 23ms (ActiveRecord: 6.1ms | Allocations: 3108)

Started GET “/products” for 127.0.0.1 at 2022-07-19 15:10:22 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.7ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.2ms | Allocations: 8585)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2333)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1512)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 206.8ms | Allocations: 63477)
Rendered layout layouts/application.html.erb (Duration: 222.1ms | Allocations: 71198)

Completed 200 OK in 233ms (Views: 208.8ms | ActiveRecord: 14.6ms | Allocations: 72551)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:10:24 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 13.8ms | Allocations: 2240)
Rendered products/new.html.erb within layouts/application (Duration: 14.4ms | Allocations: 2322)
Rendered layout layouts/application.html.erb (Duration: 43.0ms | Allocations: 9995)

Completed 200 OK in 46ms (Views: 43.7ms | ActiveRecord: 0.4ms | Allocations: 10285)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:10:27 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 7.7ms | Allocations: 5534)
Rendered products/new.html.erb within layouts/application (Duration: 8.2ms | Allocations: 5619)
Rendered layout layouts/application.html.erb (Duration: 23.9ms | Allocations: 13277)

Completed 200 OK in 29ms (Views: 24.3ms | ActiveRecord: 0.4ms | Allocations: 14423)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:10:28 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (1.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 13.4ms | Allocations: 5535)
Rendered products/new.html.erb within layouts/application (Duration: 13.8ms | Allocations: 5620)
Rendered layout layouts/application.html.erb (Duration: 38.0ms | Allocations: 13334)

Completed 200 OK in 47ms (Views: 37.9ms | ActiveRecord: 2.0ms | Allocations: 14478)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:10:52 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (4.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 48.0ms | Allocations: 6067)
Rendered products/new.html.erb within layouts/application (Duration: 50.5ms | Allocations: 6162)
Rendered layout layouts/application.html.erb (Duration: 123.1ms | Allocations: 28945)

Completed 200 OK in 192ms (Views: 118.6ms | ActiveRecord: 24.0ms | Allocations: 35893)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:10:56 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (2.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 10.8ms | Allocations: 6587)
Rendered products/new.html.erb within layouts/application (Duration: 11.2ms | Allocations: 6678)
Rendered layout layouts/application.html.erb (Duration: 41.2ms | Allocations: 14433)

Completed 200 OK in 74ms (Views: 39.4ms | ActiveRecord: 2.7ms | Allocations: 17366)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:10:57 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 6.9ms | Allocations: 5534)
Rendered products/new.html.erb within layouts/application (Duration: 7.6ms | Allocations: 5619)
Rendered layout layouts/application.html.erb (Duration: 21.5ms | Allocations: 13268)

Completed 200 OK in 26ms (Views: 22.2ms | ActiveRecord: 0.4ms | Allocations: 14489)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:10:58 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (1.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 11.4ms | Allocations: 5535)
Rendered products/new.html.erb within layouts/application (Duration: 12.5ms | Allocations: 5620)
Rendered layout layouts/application.html.erb (Duration: 36.2ms | Allocations: 13325)

Completed 200 OK in 44ms (Views: 35.8ms | ActiveRecord: 2.0ms | Allocations: 14497)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:11:39 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (2.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 33.9ms | Allocations: 6089)
Rendered products/new.html.erb within layouts/application (Duration: 34.2ms | Allocations: 6184)
Rendered layout layouts/application.html.erb (Duration: 95.8ms | Allocations: 28969)

Completed 200 OK in 162ms (Views: 92.4ms | ActiveRecord: 13.9ms | Allocations: 35858)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:11:41 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'

Completed 500 Internal Server Error in 28ms (ActiveRecord: 0.2ms | Allocations: 4361)

NameError (undefined local variable or method ‘flash’ for #<Products::ProductCreatorService:0x00007f039a18c848 @params=#<ActionController::Parameters {“name”=>“”, “description”=>“”, “price”=>“1”, “stock”=>“1”} permitted: true>, @form=#<ProductForm:0x00007f039a1115d0 @name=“”, @description=“”, @price=“1”, @stock=“1”, @validation_context=nil, @errors=#<ActiveModel::Errors [#<ActiveModel::Error attribute=name, type=blank, options={}>, #<ActiveModel::Error attribute=unique_name, type=Name already taken, options={}>]>>>

flash[:alert] = "NO"
^^^^^):

app/services/products/product_creator_service.rb:11:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:26:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:12:42 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 25.3ms | Allocations: 6060)
Rendered products/new.html.erb within layouts/application (Duration: 26.0ms | Allocations: 6155)
Rendered layout layouts/application.html.erb (Duration: 65.4ms | Allocations: 28939)

Completed 200 OK in 97ms (Views: 64.2ms | ActiveRecord: 12.9ms | Allocations: 35893)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:12:44 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 9.6ms | Allocations: 6524)
Rendered products/new.html.erb within layouts/application (Duration: 10.0ms | Allocations: 6615)
Rendered layout layouts/application.html.erb (Duration: 27.2ms | Allocations: 14370)

Completed 200 OK in 7993ms (Views: 28.4ms | ActiveRecord: 0.6ms | Allocations: 26528)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:13:03 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"a", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "a"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
TRANSACTION (0.1ms)  BEGIN
↳ app/services/products/product_creator_service.rb:9:in `call'
Product Create (0.4ms)  INSERT INTO "products" ("name", "description", "price", "stock", "created_at", "updated_at", "likes_count") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "a"], ["description", ""], ["price", "1.0"], ["stock", 1], ["created_at", "2022-07-19 20:13:03.593596"], ["updated_at", "2022-07-19 20:13:03.593596"], ["likes_count", 0]]
↳ app/services/products/product_creator_service.rb:9:in `call'
TRANSACTION (1.7ms)  COMMIT
↳ app/services/products/product_creator_service.rb:9:in `call'

Redirected to localhost:3000/products Completed 302 Found in 17509ms (ActiveRecord: 2.4ms | Allocations: 6272)

Started GET “/products” for 127.0.0.1 at 2022-07-19 15:13:21 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 21.3ms | Allocations: 11797)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 23.0ms | Allocations: 8980)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1711)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1464)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 35.3ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 257.6ms | Allocations: 75292)
Rendered layout layouts/application.html.erb (Duration: 280.8ms | Allocations: 83128)

Completed 200 OK in 334ms (Views: 267.0ms | ActiveRecord: 24.1ms | Allocations: 98678)

Started GET “/products” for 127.0.0.1 at 2022-07-19 15:14:08 -0500 Processing by ProductsController#index as HTML

Order Load (2.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 30.1ms | Allocations: 12741)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.0ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 63.4ms | Allocations: 12339)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1711)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1467)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1464)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1465)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.1ms | Allocations: 1493)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 1461)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.4ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 1464)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 1494)
Tag Load (6.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.3ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 392.3ms | Allocations: 81565)
Rendered layout layouts/application.html.erb (Duration: 522.5ms | Allocations: 104367)

Completed 200 OK in 620ms (Views: 488.1ms | ActiveRecord: 50.1ms | Allocations: 118826)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:14:13 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 10.6ms | Allocations: 2421)
Rendered products/new.html.erb within layouts/application (Duration: 13.3ms | Allocations: 2505)
Rendered layout layouts/application.html.erb (Duration: 35.0ms | Allocations: 10202)

Completed 200 OK in 38ms (Views: 37.3ms | ActiveRecord: 0.3ms | Allocations: 10541)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:14:14 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'

Completed 500 Internal Server Error in 8374ms (ActiveRecord: 0.3ms | Allocations: 6493)

NoMethodError (undefined method ‘save’ for false:FalseClass

if product.save
          ^^^^^):

app/controllers/products_controller.rb:28:in ‘create’ Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:16:29 -0500

ActiveRecord::SchemaMigration Pluck (1.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_form.html.erb:9
Rendered products/_form.html.erb (Duration: 450.4ms | Allocations: 286843)
Rendered products/new.html.erb within layouts/application (Duration: 452.7ms | Allocations: 287401)
Rendered layout layouts/application.html.erb (Duration: 553.6ms | Allocations: 342792)

Completed 200 OK in 613ms (Views: 553.7ms | ActiveRecord: 11.9ms | Allocations: 355632)

Started GET “/” for 127.0.0.1 at 2022-07-19 15:16:31 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 27.7ms | Allocations: 13435)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 36.6ms | Allocations: 12168)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1711)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1494)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1495)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1514)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 43.9ms | Allocations: 1464)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1464)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1493)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1464)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1464)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.5ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1462)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.6ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 300.6ms | Allocations: 80826)
Rendered layout layouts/application.html.erb (Duration: 312.8ms | Allocations: 88661)

Completed 200 OK in 384ms (Views: 291.6ms | ActiveRecord: 30.9ms | Allocations: 102476)

Started GET “/products/50/edit” for 127.0.0.1 at 2022-07-19 15:16:37 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"50"}
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 50], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (1.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:64:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 5.2ms | Allocations: 1486)
Rendered products/edit.html.erb within layouts/application (Duration: 11.2ms | Allocations: 1734)
Rendered layout layouts/application.html.erb (Duration: 30.4ms | Allocations: 9513)

Completed 200 OK in 53ms (Views: 34.1ms | ActiveRecord: 2.6ms | Allocations: 12391)

Started PATCH “/products/50” for 127.0.0.1 at 2022-07-19 15:16:46 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"EDITED THIS", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Update", "id"=>"50"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 50], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (1.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:64:in `set_product'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "EDITED THIS"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'

Completed 500 Internal Server Error in 25ms (ActiveRecord: 2.0ms | Allocations: 4801)

ArgumentError (When assigning attributes, you must pass a hash as an argument, ProductForm passed.):

app/services/products/product_updater_service.rb:14:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/products_controller.rb:39:in ‘update’ Started GET “/products/50/edit” for 127.0.0.1 at 2022-07-19 15:17:16 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"50"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 50], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:64:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 3.1ms | Allocations: 1580)
Rendered products/edit.html.erb within layouts/application (Duration: 3.5ms | Allocations: 1675)
Rendered layout layouts/application.html.erb (Duration: 37.8ms | Allocations: 24390)

Completed 200 OK in 112ms (Views: 39.1ms | ActiveRecord: 10.7ms | Allocations: 37559)

Started PATCH “/products/50” for 127.0.0.1 at 2022-07-19 15:17:22 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"EDITED THIS", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Update", "id"=>"50"}
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 50], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:64:in `set_product'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "EDITED THIS"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
TRANSACTION (0.3ms)  BEGIN
↳ app/models/product.rb:39:in `block in new_log_update'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/models/product.rb:39:in `block in new_log_update'
Log Create (0.8ms)  INSERT INTO "logs" ("loggable_type", "loggable_id", "attr", "old_val", "new_val", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["loggable_type", "Product"], ["loggable_id", 50], ["attr", "name"], ["old_val", "a"], ["new_val", "EDITED THIS"], ["user_id", 1], ["created_at", "2022-07-19 20:17:22.673301"], ["updated_at", "2022-07-19 20:17:22.673301"]]
↳ app/models/product.rb:39:in `block in new_log_update'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/models/product.rb:39:in `block in new_log_update'
Log Create (0.5ms)  INSERT INTO "logs" ("loggable_type", "loggable_id", "attr", "old_val", "new_val", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["loggable_type", "Product"], ["loggable_id", 50], ["attr", "price"], ["old_val", "1.0"], ["new_val", "10.0"], ["user_id", 1], ["created_at", "2022-07-19 20:17:22.679640"], ["updated_at", "2022-07-19 20:17:22.679640"]]
↳ app/models/product.rb:39:in `block in new_log_update'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/models/product.rb:39:in `block in new_log_update'
Log Create (0.6ms)  INSERT INTO "logs" ("loggable_type", "loggable_id", "attr", "old_val", "new_val", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["loggable_type", "Product"], ["loggable_id", 50], ["attr", "stock"], ["old_val", "1"], ["new_val", "100"], ["user_id", 1], ["created_at", "2022-07-19 20:17:22.685768"], ["updated_at", "2022-07-19 20:17:22.685768"]]
↳ app/models/product.rb:39:in `block in new_log_update'
Product Update (0.5ms)  UPDATE "products" SET "name" = $1, "price" = $2, "stock" = $3, "updated_at" = $4 WHERE "products"."id" = $5  [["name", "EDITED THIS"], ["price", "10.0"], ["stock", 100], ["updated_at", "2022-07-19 20:17:22.649568"], ["id", 50]]
↳ app/services/products/product_updater_service.rb:14:in `call'
TRANSACTION (1.2ms)  COMMIT
↳ app/services/products/product_updater_service.rb:14:in `call'

Redirected to localhost:3000/products Completed 302 Found in 59ms (ActiveRecord: 9.7ms | Allocations: 20985)

Started GET “/products” for 127.0.0.1 at 2022-07-19 15:17:22 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 42.7ms | Allocations: 12620)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 23.5ms | Allocations: 8749)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1711)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (4.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.3ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1467)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1462)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1463)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.5ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 246.5ms | Allocations: 75933)
Rendered layout layouts/application.html.erb (Duration: 263.6ms | Allocations: 83768)

Completed 200 OK in 300ms (Views: 241.7ms | ActiveRecord: 33.4ms | Allocations: 93385)

Started GET “/products/41/edit” for 127.0.0.1 at 2022-07-19 15:17:37 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"41"}
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 41], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:64:in `set_product'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 4.0ms | Allocations: 1385)
Rendered products/edit.html.erb within layouts/application (Duration: 5.3ms | Allocations: 1467)
Rendered layout layouts/application.html.erb (Duration: 32.2ms | Allocations: 9133)

Completed 200 OK in 48ms (Views: 33.8ms | ActiveRecord: 0.7ms | Allocations: 11038)

Started PATCH “/products/41” for 127.0.0.1 at 2022-07-19 15:17:41 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"EDITED THIS", "description"=>"", "price"=>"80.0", "stock"=>"100"}, "commit"=>"Update", "id"=>"41"}
Product Load (1.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 41], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (1.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:64:in `set_product'
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "EDITED THIS"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 6.2ms | Allocations: 1317)
Rendered products/edit.html.erb within layouts/application (Duration: 6.9ms | Allocations: 1402)
Rendered layout layouts/application.html.erb (Duration: 31.6ms | Allocations: 9060)

Completed 200 OK in 46ms (Views: 33.1ms | ActiveRecord: 3.0ms | Allocations: 11517)

Started PATCH “/products/41” for 127.0.0.1 at 2022-07-19 15:17:43 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"EDITED THIS", "description"=>"", "price"=>"80.0", "stock"=>"100"}, "commit"=>"Update", "id"=>"41"}
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 41], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:64:in `set_product'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "EDITED THIS"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 2.9ms | Allocations: 1317)
Rendered products/edit.html.erb within layouts/application (Duration: 3.9ms | Allocations: 1402)
Rendered layout layouts/application.html.erb (Duration: 19.7ms | Allocations: 9061)

Completed 200 OK in 36ms (Views: 21.7ms | ActiveRecord: 0.8ms | Allocations: 11499)

Started GET “/” for 127.0.0.1 at 2022-07-19 15:20:36 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 29.9ms | Allocations: 13038)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.9ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 44.6ms | Allocations: 12925)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1711)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1462)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1494)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1464)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 312.4ms | Allocations: 82839)
Rendered layout layouts/application.html.erb (Duration: 352.6ms | Allocations: 106127)

Completed 200 OK in 419ms (Views: 326.3ms | ActiveRecord: 41.3ms | Allocations: 120883)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-19 15:20:37 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 35ms (ActiveRecord: 0.2ms | Allocations: 3187)

Started GET “/” for 127.0.0.1 at 2022-07-19 15:20:37 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 32.4ms | Allocations: 8632)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.7ms | Allocations: 2316)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2017)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1837)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1789)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1789)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1789)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 53.9ms | Allocations: 1789)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1818)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1789)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1789)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1789)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1787)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1787)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1787)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1786)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1818)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 350.4ms | Allocations: 76294)
Rendered layout layouts/application.html.erb (Duration: 365.2ms | Allocations: 84124)

Completed 200 OK in 379ms (Views: 353.7ms | ActiveRecord: 15.5ms | Allocations: 85760)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:20:40 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 7.1ms | Allocations: 1669)
Rendered products/new.html.erb within layouts/application (Duration: 9.6ms | Allocations: 1960)
Rendered layout layouts/application.html.erb (Duration: 38.6ms | Allocations: 9630)

Completed 200 OK in 42ms (Views: 41.3ms | ActiveRecord: 0.0ms | Allocations: 10043)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:21:10 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 5.1ms | Allocations: 1972)
Rendered products/new.html.erb within layouts/application (Duration: 10.2ms | Allocations: 2271)
Rendered layout layouts/application.html.erb (Duration: 34.4ms | Allocations: 10757)

Completed 200 OK in 42ms (Views: 40.5ms | ActiveRecord: 0.0ms | Allocations: 11625)

Started POST “/products” for 127.0.0.1 at 2022-07-19 15:21:17 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"NEW PRODUCT6", "description"=>"", "price"=>"1", "stock"=>"1"}, "commit"=>"Add Product"}

Redirected to localhost:3000/products/new Completed 302 Found in 4ms (ActiveRecord: 0.0ms | Allocations: 864)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:21:17 -0500 Processing by ProductsController#new as TURBO_STREAM

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 4.5ms | Allocations: 1420)
Rendered products/new.html.erb within layouts/application (Duration: 6.9ms | Allocations: 1548)
Rendered layout layouts/application.html.erb (Duration: 23.4ms | Allocations: 9315)

Completed 200 OK in 25ms (Views: 24.0ms | ActiveRecord: 0.0ms | Allocations: 9673)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 15:22:15 -0500 Processing by ProductsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 5.8ms | Allocations: 1381)
Rendered products/new.html.erb within layouts/application (Duration: 6.6ms | Allocations: 1463)
Rendered layout layouts/application.html.erb (Duration: 61.4ms | Allocations: 9180)

Completed 200 OK in 65ms (Views: 63.9ms | ActiveRecord: 0.0ms | Allocations: 9469)

Started GET “/” for 127.0.0.1 at 2022-07-19 15:28:03 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 23.8ms | Allocations: 12865)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 33.2ms | Allocations: 8826)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2007)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1819)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 1819)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1819)
Tag Load (7.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 19.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 1838)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 21.0ms | Allocations: 1789)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.5ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1789)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1789)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1787)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1818)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1786)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1818)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 442.2ms | Allocations: 89298)
Rendered layout layouts/application.html.erb (Duration: 493.7ms | Allocations: 112573)

Completed 200 OK in 556ms (Views: 470.0ms | ActiveRecord: 33.5ms | Allocations: 129773)

Started GET “/products/8” for 127.0.0.1 at 2022-07-19 15:28:05 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"8"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 2068)
Comment Load (0.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" IS NULL)  [["commentable_id", 8], ["commentable_type", "Product"], ["approved", true]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 12.2ms | Allocations: 3182)
Rendered products/show.html.erb within layouts/application (Duration: 39.6ms | Allocations: 6954)
Rendered layout layouts/application.html.erb (Duration: 63.4ms | Allocations: 14746)

Completed 200 OK in 92ms (Views: 66.3ms | ActiveRecord: 4.5ms | Allocations: 17617)

Started GET “/” for 127.0.0.1 at 2022-07-19 15:28:06 -0500 Processing by ProductsController#index as HTML

Order Load (1.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.7ms | Allocations: 8615)
Product Exists? (1.0ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1980)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 32.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1819)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1837)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1789)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1789)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1789)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1789)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1818)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1789)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1789)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1789)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1789)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1789)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1787)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1787)
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1787)
Tag Load (2.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1818)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1786)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 323.7ms | Allocations: 75719)
Rendered layout layouts/application.html.erb (Duration: 336.2ms | Allocations: 83437)

Completed 200 OK in 350ms (Views: 304.7ms | ActiveRecord: 35.2ms | Allocations: 84924)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-19 15:38:45 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 1.9ms | Allocations: 728)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 14.9ms | Allocations: 3506)
Rendered layout layouts/application.html.erb (Duration: 53.0ms | Allocations: 26329)

Completed 200 OK in 87ms (Views: 57.9ms | ActiveRecord: 8.5ms | Allocations: 33742)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-19 15:38:51 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"test1@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2 LIMIT $3  [["user_id", 3], ["status", 0], ["LIMIT", 1]]
↳ app/controllers/sessions_controller.rb:12:in `after_login'
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
TRANSACTION (0.2ms)  BEGIN
↳ app/controllers/sessions_controller.rb:15:in `after_login'
Order Create (0.9ms)  INSERT INTO "orders" ("date", "user_id", "total", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["date", nil], ["user_id", 3], ["total", "0.0"], ["status", 0], ["created_at", "2022-07-19 20:38:51.768744"], ["updated_at", "2022-07-19 20:38:51.768744"]]
↳ app/controllers/sessions_controller.rb:15:in `after_login'
TRANSACTION (8.2ms)  COMMIT
↳ app/controllers/sessions_controller.rb:15:in `after_login'

Completed 302 Found in 303ms (ActiveRecord: 13.3ms | Allocations: 14547)

Started GET “/” for 127.0.0.1 at 2022-07-19 15:38:51 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 19.0ms | Allocations: 12426)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.9ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 26.6ms | Allocations: 10245)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2853)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2635)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 15.1ms | Allocations: 5120)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 3429)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 3429)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 385.2ms | Allocations: 121706)
Rendered layout layouts/application.html.erb (Duration: 398.2ms | Allocations: 129672)

Completed 200 OK in 425ms (Views: 364.3ms | ActiveRecord: 37.3ms | Allocations: 138501)

Started GET “/products/8” for 127.0.0.1 at 2022-07-19 15:38:54 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"8"}
Order Load (2.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
User Load (1.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 26.9ms | Allocations: 3655)
Rendered comments/_form.html.erb (Duration: 21.2ms | Allocations: 4756)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 8], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 6.7ms | Allocations: 2051)
Rendered products/show.html.erb within layouts/application (Duration: 59.8ms | Allocations: 11955)
Rendered layout layouts/application.html.erb (Duration: 73.0ms | Allocations: 19776)

Completed 200 OK in 89ms (Views: 65.0ms | ActiveRecord: 11.9ms | Allocations: 22856)

Started POST “/products/8/comments” for 127.0.0.1 at 2022-07-19 15:38:57 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"new", "rate"=>"2"}, "commit"=>"Add comment", "product_id"=>"8"}
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:34:in `pundit_authorize'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'

Completed 500 Internal Server Error in 36ms (ActiveRecord: 0.8ms | Allocations: 7558)

NoMethodError (undefined method ‘current_user’ for #<Product id: 8, name: “dr pepper”, description: “Carbonated soft drink”, price: 0.65e1, stock: 70, created_at: “2022-07-17 21:07:03.532510000 +0000”, updated_at: “2022-07-17 21:07:03.532510000 +0000”, likes_count: 0>):

app/controllers/comments_controller.rb:11:in ‘create’ Started GET “/products/8” for 127.0.0.1 at 2022-07-19 15:39:20 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"8"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
User Load (3.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 61.9ms | Allocations: 17060)
Rendered comments/_form.html.erb (Duration: 15.4ms | Allocations: 3165)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 8], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 4.3ms | Allocations: 1915)
Rendered products/show.html.erb within layouts/application (Duration: 86.6ms | Allocations: 23528)
Rendered layout layouts/application.html.erb (Duration: 147.5ms | Allocations: 46363)

Completed 200 OK in 235ms (Views: 133.1ms | ActiveRecord: 33.5ms | Allocations: 64577)

Started POST “/products/8/comments” for 127.0.0.1 at 2022-07-19 15:39:25 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"new", "rate"=>"2"}, "commit"=>"Add comment", "product_id"=>"8"}
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:34:in `pundit_authorize'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'

Completed 500 Internal Server Error in 19289ms (ActiveRecord: 0.7ms | Allocations: 37443)

SystemExit (exit):

(byebug):1:in ‘exit’ (byebug):1:in ‘call’ app/services/comments/comment_creator_service.rb:12:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/comments_controller.rb:11:in ‘create’ Started GET “/products/8” for 127.0.0.1 at 2022-07-19 15:40:57 -0500

ActiveRecord::SchemaMigration Pluck (0.5ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#show as HTML

Parameters: {"id"=>"8"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 413.0ms | Allocations: 298074)
Rendered comments/_form.html.erb (Duration: 15.0ms | Allocations: 5369)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 8], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 5.0ms | Allocations: 2422)
Rendered products/show.html.erb within layouts/application (Duration: 437.9ms | Allocations: 308000)
Rendered layout layouts/application.html.erb (Duration: 565.8ms | Allocations: 363362)

Completed 200 OK in 659ms (Views: 555.9ms | ActiveRecord: 27.4ms | Allocations: 392878)

Started POST “/products/8/comments” for 127.0.0.1 at 2022-07-19 15:40:59 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"new", "rate"=>"2"}, "commit"=>"Add comment", "product_id"=>"8"}
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:34:in `pundit_authorize'
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'

Completed 500 Internal Server Error in 43ms (ActiveRecord: 0.8ms | Allocations: 5860)

NameError (undefined local variable or method ‘comments_params’ for #<Comments::CommentCreatorService:0x00007fd69c1a4cb0 @params=#<ActionController::Parameters {“body”=>“new”, “rate”=>“2”} permitted: true>, @commentable=#<Product id: 8, name: “dr pepper”, description: “Carbonated soft drink”, price: 0.65e1, stock: 70, created_at: “2022-07-17 21:07:03.532510000 +0000”, updated_at: “2022-07-17 21:07:03.532510000 +0000”, likes_count: 0>, @user=#<User id: 3, email: “test1@mail.com”, first_name: “Barney”, last_name: “Marks”, address: “172 Borer Locks”, phone: “940818207”, role: “customer”, created_at: “2022-07-17 21:07:01.884125000 +0000”, updated_at: “2022-07-17 21:07:01.884125000 +0000”>>

@comment = authorize @commentable.comments.new(comments_params)
                                               ^^^^^^^^^^^^^^^

Did you mean? comment_form):

app/services/comments/comment_creator_service.rb:12:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/comments_controller.rb:11:in ‘create’ Started GET “/products/8” for 127.0.0.1 at 2022-07-19 15:41:12 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"8"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 181.1ms | Allocations: 17087)
Rendered comments/_form.html.erb (Duration: 15.0ms | Allocations: 3166)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 8], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 5.8ms | Allocations: 1915)
Rendered products/show.html.erb within layouts/application (Duration: 209.5ms | Allocations: 23562)
Rendered layout layouts/application.html.erb (Duration: 254.8ms | Allocations: 46374)

Completed 200 OK in 399ms (Views: 235.9ms | ActiveRecord: 34.6ms | Allocations: 64698)

Started POST “/products/8/comments” for 127.0.0.1 at 2022-07-19 15:41:14 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"new", "rate"=>"2"}, "commit"=>"Add comment", "product_id"=>"8"}
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:34:in `pundit_authorize'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'

Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.4ms | Allocations: 5325)

NameError (undefined local variable or method ‘comments_params’ for #<Comments::CommentCreatorService:0x00007fd69d5dfea0 @params=#<ActionController::Parameters {“body”=>“new”, “rate”=>“2”} permitted: true>, @commentable=#<Product id: 8, name: “dr pepper”, description: “Carbonated soft drink”, price: 0.65e1, stock: 70, created_at: “2022-07-17 21:07:03.532510000 +0000”, updated_at: “2022-07-17 21:07:03.532510000 +0000”, likes_count: 0>, @user=#<User id: 3, email: “test1@mail.com”, first_name: “Barney”, last_name: “Marks”, address: “172 Borer Locks”, phone: “940818207”, role: “customer”, created_at: “2022-07-17 21:07:01.884125000 +0000”, updated_at: “2022-07-17 21:07:01.884125000 +0000”>>

@comment = @commentable.comments.new(comments_params)
                                     ^^^^^^^^^^^^^^^

Did you mean? comment_form):

app/services/comments/comment_creator_service.rb:12:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/comments_controller.rb:11:in ‘create’ Started GET “/products/8” for 127.0.0.1 at 2022-07-19 15:41:42 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"8"}
Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 80.2ms | Allocations: 17058)
Rendered comments/_form.html.erb (Duration: 11.4ms | Allocations: 3166)
Comment Load (0.3ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 8], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 5.3ms | Allocations: 1915)
Rendered products/show.html.erb within layouts/application (Duration: 101.8ms | Allocations: 23527)
Rendered layout layouts/application.html.erb (Duration: 133.5ms | Allocations: 46178)

Completed 200 OK in 240ms (Views: 122.4ms | ActiveRecord: 32.0ms | Allocations: 64359)

Started POST “/products/8/comments” for 127.0.0.1 at 2022-07-19 15:41:44 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"new", "rate"=>"2"}, "commit"=>"Add comment", "product_id"=>"8"}
User Load (1.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:34:in `pundit_authorize'
Product Load (1.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
TRANSACTION (3.8ms)  BEGIN
↳ app/services/comments/comment_creator_service.rb:15:in `call'
Comment Create (2.0ms)  INSERT INTO "comments" ("body", "rate", "user_id", "commentable_type", "commentable_id", "created_at", "updated_at", "approved") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["body", "new"], ["rate", 2], ["user_id", 3], ["commentable_type", "Product"], ["commentable_id", 8], ["created_at", "2022-07-19 20:41:44.836185"], ["updated_at", "2022-07-19 20:41:44.836185"], ["approved", false]]
↳ app/services/comments/comment_creator_service.rb:15:in `call'
TRANSACTION (8.8ms)  COMMIT
↳ app/services/comments/comment_creator_service.rb:15:in `call'

Redirected to localhost:3000/products/8 Completed 302 Found in 39ms (ActiveRecord: 16.8ms | Allocations: 7880)

Started GET “/products/8” for 127.0.0.1 at 2022-07-19 15:41:44 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"8"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 3627)
Rendered comments/_form.html.erb (Duration: 1.4ms | Allocations: 773)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 8], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 7.6ms | Allocations: 2890)
Rendered products/show.html.erb within layouts/application (Duration: 21.4ms | Allocations: 7614)
Rendered layout layouts/application.html.erb (Duration: 34.9ms | Allocations: 15417)

Completed 200 OK in 44ms (Views: 34.4ms | ActiveRecord: 2.1ms | Allocations: 17785)

Started POST “/products/8/comments” for 127.0.0.1 at 2022-07-19 15:41:48 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"", "rate"=>"0"}, "commit"=>"Add comment", "product_id"=>"8"}
User Load (1.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:34:in `pundit_authorize'
Product Load (1.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'

Redirected to localhost:3000/products/8 Completed 302 Found in 16ms (ActiveRecord: 2.7ms | Allocations: 1809)

Started GET “/products/8” for 127.0.0.1 at 2022-07-19 15:41:48 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"8"}
Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (2.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 3432)
Rendered comments/_form.html.erb (Duration: 1.8ms | Allocations: 763)
Comment Load (0.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 8], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 8.2ms | Allocations: 1750)
Rendered products/show.html.erb within layouts/application (Duration: 29.6ms | Allocations: 6215)
Rendered layout layouts/application.html.erb (Duration: 47.2ms | Allocations: 13915)

Completed 200 OK in 58ms (Views: 45.0ms | ActiveRecord: 5.3ms | Allocations: 16037)

Started GET “/products/8” for 127.0.0.1 at 2022-07-19 15:42:31 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"8"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 70.1ms | Allocations: 17057)
Rendered comments/_form.html.erb (Duration: 13.9ms | Allocations: 3165)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 8], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 10.2ms | Allocations: 4275)
Rendered products/show.html.erb within layouts/application (Duration: 98.6ms | Allocations: 25811)
Rendered layout layouts/application.html.erb (Duration: 138.5ms | Allocations: 48617)

Completed 200 OK in 227ms (Views: 119.4ms | ActiveRecord: 41.3ms | Allocations: 66854)

Started POST “/products/8/comments” for 127.0.0.1 at 2022-07-19 15:42:34 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"", "rate"=>"2"}, "commit"=>"Add comment", "product_id"=>"8"}
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:34:in `pundit_authorize'
Product Load (0.7ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'

Redirected to localhost:3000/products/8 Completed 302 Found in 13ms (ActiveRecord: 0.9ms | Allocations: 3428)

Started GET “/products/8” for 127.0.0.1 at 2022-07-19 15:42:34 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"8"}
Order Load (0.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
User Load (2.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (2.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.9ms | Allocations: 3638)
Rendered comments/_form.html.erb (Duration: 1.9ms | Allocations: 773)
Comment Load (2.6ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 8], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
User Load (2.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 12.8ms | Allocations: 1792)
Rendered products/show.html.erb within layouts/application (Duration: 35.5ms | Allocations: 6483)
Rendered layout layouts/application.html.erb (Duration: 52.2ms | Allocations: 14282)

Completed 200 OK in 63ms (Views: 42.5ms | ActiveRecord: 10.7ms | Allocations: 16671)

Started GET “/” for 127.0.0.1 at 2022-07-19 15:53:02 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 24.0ms | Allocations: 13276)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 29.7ms | Allocations: 13051)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2853)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2636)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 20.1ms | Allocations: 5123)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.8ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2605)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2635)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 2602)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (2.8ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.8ms | Allocations: 3429)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 384.6ms | Allocations: 125907)
Rendered layout layouts/application.html.erb (Duration: 415.0ms | Allocations: 148546)

Completed 200 OK in 475ms (Views: 377.1ms | ActiveRecord: 46.2ms | Allocations: 166193)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 15:53:04 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (1.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (2.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:45:in `pundit_authorize'

Completed 500 Internal Server Error in 44ms (ActiveRecord: 3.0ms | Allocations: 7816)

NoMethodError (undefined method ‘quantity=’ for #<Order id: 8, date: nil, user_id: 3, total: 0.0, status: “in_process”, created_at: “2022-07-19 20:38:51.768744000 +0000”, updated_at: “2022-07-19 20:38:51.768744000 +0000”>):

app/services/order_lines/order_line_updater_service.rb:8:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/order_lines_controller.rb:12:in ‘create’ Started GET “/” for 127.0.0.1 at 2022-07-19 15:53:58 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 34.7ms | Allocations: 12666)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (2.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 44.8ms | Allocations: 13872)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2853)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2707)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2605)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2605)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2606)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2605)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 18.2ms | Allocations: 5112)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2602)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2635)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 26.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 458.9ms | Allocations: 125838)
Rendered layout layouts/application.html.erb (Duration: 498.7ms | Allocations: 148637)

Completed 200 OK in 567ms (Views: 434.2ms | ActiveRecord: 74.4ms | Allocations: 163805)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 15:54:03 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (0.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:45:in `pundit_authorize'

Completed 500 Internal Server Error in 26ms (ActiveRecord: 1.4ms | Allocations: 4513)

ActiveModel::UnknownAttributeError (unknown attribute ‘product_id’ for OrderLineForm.

raise UnknownAttributeError.new(self, k.to_s)
^^^^^):

app/services/order_lines/order_line_creator_service.rb:8:in ‘new’ app/services/order_lines/order_line_creator_service.rb:8:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/order_lines_controller.rb:12:in ‘create’ Started GET “/” for 127.0.0.1 at 2022-07-19 15:54:30 -0500 Processing by ProductsController#index as HTML

Order Load (2.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 28.5ms | Allocations: 12677)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (2.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 54.4ms | Allocations: 13872)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.0ms | Allocations: 2853)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 34.2ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.3ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 18.3ms | Allocations: 5132)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2605)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2605)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2605)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2603)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 3429)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2602)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 492.2ms | Allocations: 125868)
Rendered layout layouts/application.html.erb (Duration: 532.6ms | Allocations: 148669)

Completed 200 OK in 599ms (Views: 479.6ms | ActiveRecord: 68.0ms | Allocations: 163788)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 15:54:32 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:45:in `pundit_authorize'

Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.5ms | Allocations: 5743)

NameError (undefined local variable or method ‘product’ for #<OrderLineForm:0x00007fd667f2c0e8 @product_id=“4”, @quantity=“2”, @validation_context=nil, @errors=#<ActiveModel::Errors []>>

errors.add(:quantity, :amount, message: 'Not enough stock') unless product.available_stock?(quantity)
                                                                   ^^^^^^^

Did you mean? product_id):

app/forms/order_line_form.rb:12:in ‘check_stock’ app/services/order_lines/order_line_creator_service.rb:10:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/order_lines_controller.rb:12:in ‘create’ Started GET “/” for 127.0.0.1 at 2022-07-19 15:54:58 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 31.3ms | Allocations: 12684)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 50.5ms | Allocations: 13875)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 2853)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 2635)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2635)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2707)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2605)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2605)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2605)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 23.3ms | Allocations: 5112)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2605)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2605)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2605)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2605)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.5ms | Allocations: 3429)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2602)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 3429)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2605)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 488.4ms | Allocations: 125858)
Rendered layout layouts/application.html.erb (Duration: 526.2ms | Allocations: 148658)

Completed 200 OK in 628ms (Views: 468.4ms | ActiveRecord: 79.7ms | Allocations: 163831)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 15:55:00 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (2.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:45:in `pundit_authorize'

Completed 500 Internal Server Error in 25ms (ActiveRecord: 2.5ms | Allocations: 5644)

NoMethodError (undefined method ‘product’ for #<OrderLineForm:0x00007fd667a2add8 @product_id=“4”, @quantity=“2”, @validation_context=nil, @errors=#<ActiveModel::Errors []>>

errors.add(:quantity, :amount, message: 'Not enough stock') unless self.product.available_stock?(quantity)
                                                                       ^^^^^^^^

Did you mean? product_id):

app/forms/order_line_form.rb:12:in ‘check_stock’ app/services/order_lines/order_line_creator_service.rb:10:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/order_lines_controller.rb:12:in ‘create’

OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines"
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" ORDER BY "order_lines"."id" ASC LIMIT $1  [["LIMIT", 1]]
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]

Started GET “/” for 127.0.0.1 at 2022-07-19 15:55:57 -0500 Processing by ProductsController#index as HTML

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 51.2ms | Allocations: 12688)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 54.6ms | Allocations: 13874)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2853)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 2635)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.5ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.0ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 19.2ms | Allocations: 5112)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 26.1ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2602)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 24.7ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 507.8ms | Allocations: 125861)
Rendered layout layouts/application.html.erb (Duration: 546.2ms | Allocations: 148661)

Completed 200 OK in 642ms (Views: 484.7ms | ActiveRecord: 73.9ms | Allocations: 163821)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 15:55:59 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (3.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:45:in `pundit_authorize'

Completed 500 Internal Server Error in 187911ms (ActiveRecord: 3.4ms | Allocations: 35773)

NoMethodError (undefined method ‘product’ for #<OrderLineForm:0x00007fd69d59ad28 @product_id=“4”, @quantity=“2”, @validation_context=nil, @errors=#<ActiveModel::Errors []>> Did you mean? product_id):

app/forms/order_line_form.rb:13:in ‘check_stock’ app/services/order_lines/order_line_creator_service.rb:10:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/order_lines_controller.rb:12:in ‘create’ Started GET “/” for 127.0.0.1 at 2022-07-19 15:59:23 -0500

ActiveRecord::SchemaMigration Pluck (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 26.1ms | Allocations: 14256)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 398.1ms | Allocations: 294439)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2911)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 2646)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 17.2ms | Allocations: 5126)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2605)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2605)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.7ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2605)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2605)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.6ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 15.1ms | Allocations: 3429)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2602)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.1ms | Allocations: 3429)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2605)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.6ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 848.7ms | Allocations: 410163)
Rendered layout layouts/application.html.erb (Duration: 970.0ms | Allocations: 465732)

Completed 200 OK in 1066ms (Views: 921.2ms | ActiveRecord: 63.6ms | Allocations: 490737)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 15:59:26 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:45:in `pundit_authorize'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", nil], ["LIMIT", 1]]
↳ app/forms/order_line_form.rb:13:in `check_stock'

Completed 404 Not Found in 27356ms (ActiveRecord: 2.0ms | Allocations: 30758)

ActiveRecord::RecordNotFound (Couldn’t find Product with ‘id’=product_id):

app/forms/order_line_form.rb:13:in ‘check_stock’ app/services/order_lines/order_line_creator_service.rb:10:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/order_lines_controller.rb:12:in ‘create’ Started GET “/” for 127.0.0.1 at 2022-07-19 15:59:54 -0500 Processing by ProductsController#index as HTML

Order Load (0.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 33.3ms | Allocations: 12646)
Product Exists? (0.8ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 55.0ms | Allocations: 13875)
Tag Load (4.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2853)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2635)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.2ms | Allocations: 2635)
Tag Load (2.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 2635)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.4ms | Allocations: 2707)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.4ms | Allocations: 2605)
Tag Load (5.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2605)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2605)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 2605)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (1.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 21.6ms | Allocations: 5112)
Tag Load (4.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.5ms | Allocations: 2605)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.7ms | Allocations: 2605)
Tag Load (3.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.6ms | Allocations: 2605)
Tag Load (3.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 2605)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2605)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2603)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2605)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 3429)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2602)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 3429)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 547.9ms | Allocations: 125820)
Rendered layout layouts/application.html.erb (Duration: 596.5ms | Allocations: 148626)

Completed 200 OK in 666ms (Views: 474.7ms | ActiveRecord: 134.9ms | Allocations: 163793)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 15:59:58 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (2.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:45:in `pundit_authorize'
Product Load (0.8ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/forms/order_line_form.rb:13:in `check_stock'

Completed 500 Internal Server Error in 7191ms (ActiveRecord: 3.1ms | Allocations: 10343)

NoMethodError (undefined method ‘available_stock?’ for #<OrderLineForm:0x00007f014d52a328 @product_id=“4”, @quantity=“2”, @validation_context=nil, @errors=#<ActiveModel::Errors []>>

errors.add(:quantity, :amount, message: 'Not enough stock') unless available_stock?(quantity)
                                                                   ^^^^^^^^^^^^^^^^):

app/forms/order_line_form.rb:14:in ‘check_stock’ app/services/order_lines/order_line_creator_service.rb:10:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/order_lines_controller.rb:12:in ‘create’ Started GET “/” for 127.0.0.1 at 2022-07-19 16:00:31 -0500

ActiveRecord::SchemaMigration Pluck (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (5.8ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 196.9ms | Allocations: 14255)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 374.4ms | Allocations: 294299)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2911)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 5126)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 3430)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 2602)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.1ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 911.4ms | Allocations: 410031)
Rendered layout layouts/application.html.erb (Duration: 1030.5ms | Allocations: 465409)

Completed 200 OK in 1137ms (Views: 983.2ms | ActiveRecord: 71.5ms | Allocations: 490414)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 16:00:34 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:45:in `pundit_authorize'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/forms/order_line_form.rb:13:in `check_stock'

Completed 500 Internal Server Error in 8803ms (ActiveRecord: 0.8ms | Allocations: 29518)

ArgumentError (comparison of Integer with String failed):

app/models/product.rb:29:in ‘>=’ app/models/product.rb:29:in ‘available_stock?’ app/forms/order_line_form.rb:15:in ‘check_stock’ app/services/order_lines/order_line_creator_service.rb:10:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/order_lines_controller.rb:12:in ‘create’ Started GET “/” for 127.0.0.1 at 2022-07-19 16:01:17 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 28.4ms | Allocations: 12646)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 50.8ms | Allocations: 13874)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 24.7ms | Allocations: 2853)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (5.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.1ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 26.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 24.9ms | Allocations: 2636)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.8ms | Allocations: 2635)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 2707)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2605)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 52.0ms | Allocations: 5132)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.9ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.9ms | Allocations: 2605)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.3ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2605)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 2603)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2603)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2602)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 589.3ms | Allocations: 125840)
Rendered layout layouts/application.html.erb (Duration: 636.5ms | Allocations: 148641)

Completed 200 OK in 711ms (Views: 576.6ms | ActiveRecord: 75.0ms | Allocations: 163823)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 16:01:19 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (1.1ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:45:in `pundit_authorize'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/forms/order_line_form.rb:12:in `check_stock'

Completed 500 Internal Server Error in 28ms (ActiveRecord: 1.9ms | Allocations: 5376)

ArgumentError (wrong number of arguments (given 0, expected 2)):

app/services/order_lines/order_line_creator_service.rb:22:in ‘new_or_existing_product’ app/services/order_lines/order_line_creator_service.rb:11:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/order_lines_controller.rb:12:in ‘create’ Started GET “/” for 127.0.0.1 at 2022-07-19 16:01:38 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (5.0ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 35.0ms | Allocations: 12652)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 53.5ms | Allocations: 13873)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2858)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2635)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.5ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 2605)
Tag Load (3.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (4.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 20.8ms | Allocations: 5112)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2605)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2610)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2603)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 26.5ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 20.7ms | Allocations: 3430)
Tag Load (3.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (9.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.2ms | Allocations: 2602)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.6ms | Allocations: 3429)
Tag Load (2.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 498.1ms | Allocations: 125835)
Rendered layout layouts/application.html.erb (Duration: 533.5ms | Allocations: 148635)

Completed 200 OK in 610ms (Views: 452.4ms | ActiveRecord: 101.8ms | Allocations: 163742)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 16:01:40 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:45:in `pundit_authorize'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/forms/order_line_form.rb:12:in `check_stock'
OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 8], ["product_id", 4], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_creator_service.rb:23:in `new_or_existing_product'

Completed 500 Internal Server Error in 30ms (ActiveRecord: 1.6ms | Allocations: 7158)

NoMethodError (undefined method ‘save’ for nil:NilClass

order_line.save
          ^^^^^):

app/services/order_lines/order_line_creator_service.rb:13:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/order_lines_controller.rb:12:in ‘create’ Started GET “/” for 127.0.0.1 at 2022-07-19 16:01:59 -0500 Processing by ProductsController#index as HTML

Order Load (1.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 30.3ms | Allocations: 12652)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 57.0ms | Allocations: 13872)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 22.5ms | Allocations: 2853)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.6ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.5ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 2707)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2605)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2605)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.9ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 24.6ms | Allocations: 5112)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 2605)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.2ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.8ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2603)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 3429)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2602)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 3429)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 27.5ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2635)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 551.4ms | Allocations: 125824)
Rendered layout layouts/application.html.erb (Duration: 592.5ms | Allocations: 148668)

Completed 200 OK in 695ms (Views: 540.1ms | ActiveRecord: 70.4ms | Allocations: 163767)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 16:02:01 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:45:in `pundit_authorize'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/forms/order_line_form.rb:12:in `check_stock'
OrderLine Load (0.5ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 8], ["product_id", 4], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_creator_service.rb:24:in `new_or_existing_product'
CACHE OrderLine Load (0.0ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 8], ["product_id", 4], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_creator_service.rb:24:in `new_or_existing_product'

Completed 500 Internal Server Error in 63651ms (ActiveRecord: 1.5ms | Allocations: 37909)

SystemExit (exit):

(byebug):1:in ‘exit’ (byebug):1:in ‘call’ app/services/order_lines/order_line_creator_service.rb:14:in ‘call’ app/services/application_service.rb:3:in ‘call’ app/controllers/order_lines_controller.rb:12:in ‘create’ Started GET “/” for 127.0.0.1 at 2022-07-19 16:03:16 -0500

ActiveRecord::SchemaMigration Pluck (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#index as HTML

Order Load (1.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 42.5ms | Allocations: 14256)
Product Exists? (0.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 623.5ms | Allocations: 294642)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2911)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 5126)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2605)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 2602)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 3429)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 1052.2ms | Allocations: 410355)
Rendered layout layouts/application.html.erb (Duration: 1225.9ms | Allocations: 465732)

Completed 200 OK in 1337ms (Views: 1187.9ms | ActiveRecord: 62.5ms | Allocations: 490722)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 16:03:19 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"2"}, "commit"=>"Add to Cart"}
Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:45:in `pundit_authorize'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/forms/order_line_form.rb:12:in `check_stock'
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1 AND "order_lines"."product_id" = $2 LIMIT $3  [["order_id", 8], ["product_id", 4], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_creator_service.rb:24:in `new_or_existing_product'
TRANSACTION (0.4ms)  BEGIN
↳ app/services/order_lines/order_line_creator_service.rb:14:in `call'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_creator_service.rb:14:in `call'
OrderLine Create (0.7ms)  INSERT INTO "order_lines" ("order_id", "product_id", "quantity", "total", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["order_id", 8], ["product_id", 4], ["quantity", 2], ["total", "24.0"], ["created_at", "2022-07-19 21:03:29.237448"], ["updated_at", "2022-07-19 21:03:29.237448"]]
↳ app/services/order_lines/order_line_creator_service.rb:14:in `call'
TRANSACTION (19.3ms)  COMMIT
↳ app/services/order_lines/order_line_creator_service.rb:14:in `call'
TRANSACTION (0.1ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 8]]
↳ app/models/order.rb:31:in `set_total'
Order Update (1.2ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "24.0"], ["updated_at", "2022-07-19 21:03:29.268411"], ["id", 8]]
↳ app/services/order_lines/order_line_creator_service.rb:15:in `call'
TRANSACTION (1.1ms)  COMMIT
↳ app/services/order_lines/order_line_creator_service.rb:15:in `call'

Redirected to localhost:3000/cart Completed 302 Found in 9444ms (ActiveRecord: 25.8ms | Allocations: 42865)

Started GET “/cart” for 127.0.0.1 at 2022-07-19 16:03:29 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 8]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.4ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 8], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 20.1ms | Allocations: 6247)
Rendered layout layouts/application.html.erb (Duration: 35.4ms | Allocations: 14211)

Completed 200 OK in 47ms (Views: 36.3ms | ActiveRecord: 2.1ms | Allocations: 17331)

Started PATCH “/order_lines/11” for 127.0.0.1 at 2022-07-19 16:03:33 -0500 Processing by OrderLinesController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"3"}, "commit"=>"Update", "id"=>"11"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:45:in `pundit_authorize'
OrderLine Load (0.2ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."id" = $1 LIMIT $2  [["id", 11], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_finder_service.rb:7:in `call'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
TRANSACTION (0.1ms)  BEGIN
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
OrderLine Update (0.4ms)  UPDATE "order_lines" SET "quantity" = $1, "total" = $2, "updated_at" = $3 WHERE "order_lines"."id" = $4  [["quantity", 3], ["total", "36.0"], ["updated_at", "2022-07-19 21:03:33.409964"], ["id", 11]]
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 8]]
↳ app/models/order.rb:31:in `set_total'
Order Update (0.4ms)  UPDATE "orders" SET "total" = $1, "updated_at" = $2 WHERE "orders"."id" = $3  [["total", "36.0"], ["updated_at", "2022-07-19 21:03:33.421020"], ["id", 8]]
↳ app/models/order_line.rb:28:in `update_total'
TRANSACTION (16.7ms)  COMMIT
↳ app/services/order_lines/order_line_updater_service.rb:10:in `call'

Redirected to localhost:3000/cart Completed 302 Found in 65ms (ActiveRecord: 19.6ms | Allocations: 9971)

Started GET “/cart” for 127.0.0.1 at 2022-07-19 16:03:33 -0500 Processing by OrdersController#cart as TURBO_STREAM

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (0.9ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 8]]
↳ app/views/orders/cart.html.erb:3
Product Load (0.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (0.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 8], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 17.8ms | Allocations: 5329)
Rendered layout layouts/application.html.erb (Duration: 36.2ms | Allocations: 13150)

Completed 200 OK in 51ms (Views: 35.3ms | ActiveRecord: 2.6ms | Allocations: 15603)

Started GET “/” for 127.0.0.1 at 2022-07-19 16:04:13 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 29.5ms | Allocations: 12644)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (2.2ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 50.2ms | Allocations: 13874)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 2853)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2635)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2635)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2605)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.5ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.3ms | Allocations: 2605)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 40.2ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 42.9ms | Allocations: 5132)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 25.7ms | Allocations: 2605)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2605)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.5ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2605)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2603)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 2603)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2605)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2635)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2603)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.7ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.9ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2602)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.9ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 15.4ms | Allocations: 3429)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.9ms | Allocations: 2636)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2635)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 610.3ms | Allocations: 125838)
Rendered layout layouts/application.html.erb (Duration: 646.8ms | Allocations: 148599)

Completed 200 OK in 708ms (Views: 576.7ms | ActiveRecord: 86.7ms | Allocations: 163751)

Started POST “/order_lines” for 127.0.0.1 at 2022-07-19 16:04:17 -0500 Processing by OrderLinesController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "order_line"=>{"product_id"=>"4", "quantity"=>"40"}, "commit"=>"Add to Cart"}
Order Load (1.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/order_lines_controller.rb:45:in `pundit_authorize'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/forms/order_line_form.rb:12:in `check_stock'

Redirected to localhost:3000/products Completed 302 Found in 30ms (ActiveRecord: 2.6ms | Allocations: 5256)

Started GET “/products” for 127.0.0.1 at 2022-07-19 16:04:17 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 13.3ms | Allocations: 8630)
Product Exists? (0.9ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.8ms | Allocations: 3588)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.3ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.7ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 17.0ms | Allocations: 3429)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.7ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.6ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.1ms | Allocations: 2603)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 24.3ms | Allocations: 2603)
Tag Load (2.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.0ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 2603)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2603)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.8ms | Allocations: 2602)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 13.4ms | Allocations: 3429)
Tag Load (1.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (5.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.4ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 462.1ms | Allocations: 107540)
Rendered layout layouts/application.html.erb (Duration: 477.6ms | Allocations: 115365)

Completed 200 OK in 489ms (Views: 430.8ms | ActiveRecord: 48.0ms | Allocations: 117193)

Started GET “/cart” for 127.0.0.1 at 2022-07-19 16:04:21 -0500 Processing by OrdersController#cart as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering orders/cart.html.erb within layouts/application
OrderLine Load (1.3ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 8]]
↳ app/views/orders/cart.html.erb:3
Product Load (1.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:5
User Load (2.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:9
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
OrderLine Exists? (3.3ms)  SELECT 1 AS one FROM "order_lines" WHERE "order_lines"."order_id" = $1 LIMIT $2  [["order_id", 8], ["LIMIT", 1]]
↳ app/views/orders/cart.html.erb:29
Rendered orders/cart.html.erb within layouts/application (Duration: 37.9ms | Allocations: 7876)
Rendered layout layouts/application.html.erb (Duration: 61.2ms | Allocations: 15826)

Completed 200 OK in 83ms (Views: 61.8ms | ActiveRecord: 8.3ms | Allocations: 18755)

Started GET “/” for 127.0.0.1 at 2022-07-19 16:13:38 -0500 Processing by ProductsController#index as HTML

Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 22.7ms | Allocations: 12465)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (2.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 48.8ms | Allocations: 13052)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 2853)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2635)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 2635)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (6.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (7.1ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.4ms | Allocations: 2707)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 21.1ms | Allocations: 2605)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.6ms | Allocations: 2605)
Tag Load (2.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 15.3ms | Allocations: 2605)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.5ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 30.0ms | Allocations: 5070)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.4ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.0ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.2ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 25.6ms | Allocations: 2605)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 19.6ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 17.0ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.4ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 21.1ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 20.7ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 24.6ms | Allocations: 2603)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.9ms | Allocations: 2635)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (2.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 23.6ms | Allocations: 2603)
Tag Load (9.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.0ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 25.9ms | Allocations: 2635)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 28.0ms | Allocations: 3429)
Tag Load (3.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.2ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 28.4ms | Allocations: 2602)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (3.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.8ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.4ms | Allocations: 3429)
Tag Load (2.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 2605)
Tag Load (5.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 25.1ms | Allocations: 2635)
Tag Load (3.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 16.8ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 772.8ms | Allocations: 124454)
Rendered layout layouts/application.html.erb (Duration: 967.4ms | Allocations: 147217)

Completed 200 OK in 1038ms (Views: 877.5ms | ActiveRecord: 99.7ms | Allocations: 164885)

Product Load (0.3ms)  SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT $1  [["LIMIT", 1]]

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-19 16:14:14 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 10ms (ActiveRecord: 0.3ms | Allocations: 3206)

Started GET “/” for 127.0.0.1 at 2022-07-19 16:14:14 -0500 Processing by ProductsController#index as HTML

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.9ms | Allocations: 8719)
Product Exists? (0.2ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 2150)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.1ms | Allocations: 1824)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1837)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1789)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1786)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 246.7ms | Allocations: 76027)
Rendered layout layouts/application.html.erb (Duration: 272.1ms | Allocations: 83822)

Completed 200 OK in 280ms (Views: 264.0ms | ActiveRecord: 9.7ms | Allocations: 85618)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-19 16:14:15 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 1.9ms | Allocations: 727)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 11.5ms | Allocations: 3514)
Rendered layout layouts/application.html.erb (Duration: 28.4ms | Allocations: 11433)

Completed 200 OK in 46ms (Views: 43.8ms | ActiveRecord: 0.0ms | Allocations: 13130)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-19 16:14:24 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"alvaro@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "alvaro@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 236ms (ActiveRecord: 0.4ms | Allocations: 4256)

Started GET “/” for 127.0.0.1 at 2022-07-19 16:14:24 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.6ms | Allocations: 8631)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 11.1ms | Allocations: 2429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.4ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1464)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1462)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1462)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 250.1ms | Allocations: 65164)
Rendered layout layouts/application.html.erb (Duration: 264.7ms | Allocations: 72956)

Completed 200 OK in 271ms (Views: 253.8ms | ActiveRecord: 12.4ms | Allocations: 74572)

Started GET “/products/2/edit” for 127.0.0.1 at 2022-07-19 16:14:28 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"2"}
User Load (1.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:65:in `pundit_authorize'
Product Load (0.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 8.8ms | Allocations: 1959)
Rendered products/edit.html.erb within layouts/application (Duration: 11.9ms | Allocations: 2264)
Rendered layout layouts/application.html.erb (Duration: 32.6ms | Allocations: 10039)

Completed 200 OK in 68ms (Views: 35.3ms | ActiveRecord: 1.9ms | Allocations: 12794)

Started PATCH “/products/2” for 127.0.0.1 at 2022-07-19 16:14:32 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"pringles", "description"=>"Stackable potato-based crisps", "price"=>"40", "stock"=>"22"}, "commit"=>"Update", "id"=>"2"}
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:65:in `pundit_authorize'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "pringles"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 3.3ms | Allocations: 1448)
Rendered products/edit.html.erb within layouts/application (Duration: 4.4ms | Allocations: 1539)
Rendered layout layouts/application.html.erb (Duration: 20.1ms | Allocations: 9310)

Completed 200 OK in 40ms (Views: 21.6ms | ActiveRecord: 1.1ms | Allocations: 13291)

Started GET “/products/2/edit” for 127.0.0.1 at 2022-07-19 16:14:48 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"2"}
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:65:in `pundit_authorize'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 8.6ms | Allocations: 1318)
Rendered products/edit.html.erb within layouts/application (Duration: 8.9ms | Allocations: 1400)
Rendered layout layouts/application.html.erb (Duration: 27.8ms | Allocations: 9065)

Completed 200 OK in 35ms (Views: 28.4ms | ActiveRecord: 0.8ms | Allocations: 10892)

Started PATCH “/products/2” for 127.0.0.1 at 2022-07-19 16:14:54 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"pringles", "description"=>"Stackable potato-based crisps", "price"=>"40", "stock"=>"22"}, "commit"=>"Update", "id"=>"2"}
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:65:in `pundit_authorize'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "pringles"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 3.4ms | Allocations: 1320)
Rendered products/edit.html.erb within layouts/application (Duration: 3.7ms | Allocations: 1405)
Rendered layout layouts/application.html.erb (Duration: 16.5ms | Allocations: 9086)

Completed 200 OK in 25ms (Views: 17.2ms | ActiveRecord: 1.0ms | Allocations: 11534)

Started PATCH “/products/2” for 127.0.0.1 at 2022-07-19 16:15:32 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"pringles", "description"=>"Stackable potato-based crisps", "price"=>"40", "stock"=>"22"}, "commit"=>"Update", "id"=>"2"}
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:66:in `pundit_authorize'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Product Load (2.4ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "pringles"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 4.4ms | Allocations: 1554)
Rendered products/edit.html.erb within layouts/application (Duration: 4.8ms | Allocations: 1652)
Rendered layout layouts/application.html.erb (Duration: 50.8ms | Allocations: 24358)

Completed 200 OK in 114227ms (Views: 52.4ms | ActiveRecord: 12.9ms | Allocations: 62393)

Started GET “/products/2/edit” for 127.0.0.1 at 2022-07-19 16:17:42 -0500

ActiveRecord::SchemaMigration Pluck (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC

Processing by ProductsController#edit as HTML

Parameters: {"id"=>"2"}
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:66:in `pundit_authorize'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 421.7ms | Allocations: 277112)
Rendered products/edit.html.erb within layouts/application (Duration: 424.8ms | Allocations: 277670)
Rendered layout layouts/application.html.erb (Duration: 535.5ms | Allocations: 333358)

Completed 200 OK in 632ms (Views: 538.4ms | ActiveRecord: 13.1ms | Allocations: 357173)

Started PATCH “/products/2” for 127.0.0.1 at 2022-07-19 16:17:46 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"pringles", "description"=>"Stackable potato-based crisps", "price"=>"40", "stock"=>"22"}, "commit"=>"Update", "id"=>"2"}
User Load (1.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:66:in `pundit_authorize'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "pringles"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
CACHE Product Load (0.0ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "pringles"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
CACHE Product Load (0.0ms)  SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT $2  [["name", "pringles"], ["LIMIT", 1]]
↳ app/forms/product_form.rb:11:in `unique_name'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 3.3ms | Allocations: 1469)
Rendered products/edit.html.erb within layouts/application (Duration: 6.4ms | Allocations: 1603)
Rendered layout layouts/application.html.erb (Duration: 29.0ms | Allocations: 9375)

Completed 200 OK in 97794ms (Views: 30.1ms | ActiveRecord: 1.9ms | Allocations: 54434)

Started GET “/” for 127.0.0.1 at 2022-07-19 16:19:26 -0500 Processing by ProductsController#index as HTML

Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 28.7ms | Allocations: 13464)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 66.2ms | Allocations: 15431)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1711)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1512)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1464)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1464)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.0ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 315.4ms | Allocations: 86052)
Rendered layout layouts/application.html.erb (Duration: 372.4ms | Allocations: 108817)

Completed 200 OK in 466ms (Views: 349.3ms | ActiveRecord: 37.6ms | Allocations: 127063)

Started GET “/products/2/edit” for 127.0.0.1 at 2022-07-19 16:19:30 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"2"}
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:66:in `pundit_authorize'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 18.7ms | Allocations: 1506)
Rendered products/edit.html.erb within layouts/application (Duration: 29.4ms | Allocations: 1596)
Rendered layout layouts/application.html.erb (Duration: 68.2ms | Allocations: 9373)

Completed 200 OK in 96ms (Views: 69.1ms | ActiveRecord: 0.7ms | Allocations: 12156)

Started PATCH “/products/2” for 127.0.0.1 at 2022-07-19 16:19:34 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"pringles", "description"=>"Stackable potato-based crisps", "price"=>"40", "stock"=>"22"}, "commit"=>"Update", "id"=>"2"}
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:66:in `pundit_authorize'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
TRANSACTION (0.1ms)  BEGIN
↳ app/models/product.rb:39:in `block in new_log_update'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/models/product.rb:39:in `block in new_log_update'
Log Create (3.5ms)  INSERT INTO "logs" ("loggable_type", "loggable_id", "attr", "old_val", "new_val", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["loggable_type", "Product"], ["loggable_id", 2], ["attr", "price"], ["old_val", "22.0"], ["new_val", "40.0"], ["user_id", 1], ["created_at", "2022-07-19 21:19:56.950671"], ["updated_at", "2022-07-19 21:19:56.950671"]]
↳ app/models/product.rb:39:in `block in new_log_update'
Product Update (1.6ms)  UPDATE "products" SET "price" = $1, "updated_at" = $2 WHERE "products"."id" = $3  [["price", "40.0"], ["updated_at", "2022-07-19 21:19:56.899494"], ["id", 2]]
↳ app/services/products/product_updater_service.rb:15:in `call'
TRANSACTION (43.1ms)  COMMIT
↳ app/services/products/product_updater_service.rb:15:in `call'

Redirected to localhost:3000/products Completed 302 Found in 22734ms (ActiveRecord: 55.6ms | Allocations: 32926)

Started GET “/products” for 127.0.0.1 at 2022-07-19 16:19:57 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (1.9ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.5ms | Allocations: 8635)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 11.0ms | Allocations: 2417)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1512)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.8ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.7ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1461)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 213.6ms | Allocations: 65156)
Rendered layout layouts/application.html.erb (Duration: 242.3ms | Allocations: 72948)

Completed 200 OK in 249ms (Views: 229.3ms | ActiveRecord: 15.6ms | Allocations: 74428)

Started GET “/?term=p&tag=&commit=Sort” for 127.0.0.1 at 2022-07-19 16:20:16 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"p", "tag"=>"", "commit"=>"Sort"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 13.9ms | Allocations: 8567)
Product Exists? (0.8ms)  SELECT 1 AS one FROM "products" WHERE (products.name LIKE '%p%') LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.9ms)  SELECT "products".* FROM "products" WHERE (products.name LIKE '%p%')
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 2333)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1493)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1498)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 71.7ms | Allocations: 18541)
Rendered layout layouts/application.html.erb (Duration: 88.0ms | Allocations: 26206)

Completed 200 OK in 99ms (Views: 84.9ms | ActiveRecord: 6.5ms | Allocations: 27587)

Started GET “/products/8/edit” for 127.0.0.1 at 2022-07-19 16:24:04 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"8"}
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:65:in `pundit_authorize'
Product Load (0.9ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 4.8ms | Allocations: 1619)
Rendered products/edit.html.erb within layouts/application (Duration: 6.0ms | Allocations: 1714)
Rendered layout layouts/application.html.erb (Duration: 41.3ms | Allocations: 24490)

Completed 200 OK in 104ms (Views: 44.3ms | ActiveRecord: 13.4ms | Allocations: 37830)

Started PATCH “/products/8” for 127.0.0.1 at 2022-07-19 16:24:08 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"dr pepper", "description"=>"Carbonated soft drink", "price"=>"6.5", "stock"=>"80"}, "commit"=>"Update", "id"=>"8"}
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:65:in `pundit_authorize'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
TRANSACTION (0.2ms)  BEGIN
↳ app/models/product.rb:39:in `block in new_log_update'
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/models/product.rb:39:in `block in new_log_update'
Log Create (0.5ms)  INSERT INTO "logs" ("loggable_type", "loggable_id", "attr", "old_val", "new_val", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["loggable_type", "Product"], ["loggable_id", 8], ["attr", "stock"], ["old_val", "70"], ["new_val", "80"], ["user_id", 1], ["created_at", "2022-07-19 21:24:08.452612"], ["updated_at", "2022-07-19 21:24:08.452612"]]
↳ app/models/product.rb:39:in `block in new_log_update'
Product Update (0.4ms)  UPDATE "products" SET "stock" = $1, "updated_at" = $2 WHERE "products"."id" = $3  [["stock", 80], ["updated_at", "2022-07-19 21:24:08.430081"], ["id", 8]]
↳ app/services/products/product_updater_service.rb:14:in `call'
TRANSACTION (1.6ms)  COMMIT
↳ app/services/products/product_updater_service.rb:14:in `call'

Redirected to localhost:3000/products Completed 302 Found in 49ms (ActiveRecord: 7.0ms | Allocations: 13494)

Started GET “/products” for 127.0.0.1 at 2022-07-19 16:24:08 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 19.7ms | Allocations: 12627)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 19.0ms | Allocations: 8745)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1711)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1482)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1493)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 201.2ms | Allocations: 75887)
Rendered layout layouts/application.html.erb (Duration: 214.8ms | Allocations: 83708)

Completed 200 OK in 245ms (Views: 201.2ms | ActiveRecord: 21.2ms | Allocations: 93146)

Started GET “/logs” for 127.0.0.1 at 2022-07-19 16:24:22 -0500 Processing by LogsController#index as HTML

User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/logs_controller.rb:8:in `index'
Rendering layout layouts/application.html.erb
Rendering logs/index.html.erb within layouts/application
Log Load (0.5ms)  SELECT "logs".* FROM "logs"
↳ app/views/logs/index.html.erb:20
Product Load (1.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 40], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
User Load (0.9ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
CACHE Product Load (0.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 40], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
CACHE Product Load (0.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 40], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
Product Load (2.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 50], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
CACHE Product Load (0.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 50], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
CACHE Product Load (0.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 50], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
Product Load (1.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
Product Load (5.0ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:23
CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/logs/index.html.erb:28
Rendered logs/index.html.erb within layouts/application (Duration: 81.5ms | Allocations: 13300)
Rendered layout layouts/application.html.erb (Duration: 117.8ms | Allocations: 21270)

Completed 200 OK in 136ms (Views: 108.5ms | ActiveRecord: 11.3ms | Allocations: 23622)

Started GET “/products” for 127.0.0.1 at 2022-07-19 16:24:25 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.3ms | Allocations: 8606)
Product Exists? (0.6ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.9ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (2.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 12.0ms | Allocations: 2380)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.8ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.3ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1494)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1494)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1494)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1482)
Tag Load (2.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1464)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1464)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1464)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1464)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1462)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 300.8ms | Allocations: 65084)
Rendered layout layouts/application.html.erb (Duration: 316.5ms | Allocations: 72805)

Completed 200 OK in 326ms (Views: 293.6ms | ActiveRecord: 24.2ms | Allocations: 74269)

Started GET “/products” for 127.0.0.1 at 2022-07-19 16:26:15 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 15.6ms | Allocations: 9172)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 16.0ms | Allocations: 3096)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1494)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1494)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1494)
Tag Load (1.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1482)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.6ms | Allocations: 1464)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1493)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1464)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1464)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1464)
Tag Load (1.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1464)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1462)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1462)
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1493)
Tag Load (1.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1464)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.1ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 302.1ms | Allocations: 66871)
Rendered layout layouts/application.html.erb (Duration: 349.0ms | Allocations: 75298)

Completed 200 OK in 361ms (Views: 329.5ms | ActiveRecord: 22.6ms | Allocations: 77243)

Started GET “/products/4/edit” for 127.0.0.1 at 2022-07-19 16:26:16 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"4"}
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:65:in `pundit_authorize'
Product Load (4.8ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 3.6ms | Allocations: 1563)
Rendered products/edit.html.erb within layouts/application (Duration: 10.0ms | Allocations: 1828)
Rendered layout layouts/application.html.erb (Duration: 35.5ms | Allocations: 9505)

Completed 200 OK in 51ms (Views: 38.4ms | ActiveRecord: 5.3ms | Allocations: 11420)

Started GET “/products” for 127.0.0.1 at 2022-07-19 16:26:45 -0500 Processing by ProductsController#index as HTML

Order Load (0.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.5ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 15.5ms | Allocations: 9172)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.7ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 3096)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.4ms | Allocations: 1482)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1464)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 3.9ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 223.0ms | Allocations: 66867)
Rendered layout layouts/application.html.erb (Duration: 250.3ms | Allocations: 75303)

Completed 200 OK in 260ms (Views: 243.0ms | ActiveRecord: 12.0ms | Allocations: 77293)

Started GET “/products/4/edit” for 127.0.0.1 at 2022-07-19 16:26:47 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"4"}
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:65:in `pundit_authorize'
Product Load (1.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 4.0ms | Allocations: 1277)
Rendered products/edit.html.erb within layouts/application (Duration: 9.7ms | Allocations: 1539)
Rendered layout layouts/application.html.erb (Duration: 45.9ms | Allocations: 9204)

Completed 200 OK in 67ms (Views: 50.3ms | ActiveRecord: 1.8ms | Allocations: 11092)

Started PATCH “/products/4” for 127.0.0.1 at 2022-07-19 16:26:50 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"price"=>"12.0", "stock"=>"40"}, "commit"=>"Update", "id"=>"4"}
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:65:in `pundit_authorize'
Product Load (0.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 2.2ms | Allocations: 865)
Rendered products/edit.html.erb within layouts/application (Duration: 2.5ms | Allocations: 993)
Rendered layout layouts/application.html.erb (Duration: 20.1ms | Allocations: 8651)

Completed 200 OK in 30ms (Views: 21.8ms | ActiveRecord: 0.4ms | Allocations: 10639)

Started PATCH “/products/4” for 127.0.0.1 at 2022-07-19 16:26:53 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"price"=>"12.0", "stock"=>"40"}, "commit"=>"Update", "id"=>"4"}
User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:65:in `pundit_authorize'
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 2.3ms | Allocations: 865)
Rendered products/edit.html.erb within layouts/application (Duration: 3.7ms | Allocations: 950)
Rendered layout layouts/application.html.erb (Duration: 25.9ms | Allocations: 8647)

Completed 200 OK in 47ms (Views: 30.1ms | ActiveRecord: 1.1ms | Allocations: 10544)

Started GET “/products/4/edit” for 127.0.0.1 at 2022-07-19 16:27:23 -0500 Processing by ProductsController#edit as HTML

Parameters: {"id"=>"4"}
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:65:in `pundit_authorize'
Product Load (0.1ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
Rendering layout layouts/application.html.erb
Rendering products/edit.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 3.8ms | Allocations: 1121)
Rendered products/edit.html.erb within layouts/application (Duration: 4.2ms | Allocations: 1216)
Rendered layout layouts/application.html.erb (Duration: 43.2ms | Allocations: 23988)

Completed 200 OK in 98ms (Views: 46.0ms | ActiveRecord: 7.9ms | Allocations: 37367)

Started PATCH “/products/4” for 127.0.0.1 at 2022-07-19 16:27:26 -0500 Processing by ProductsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"price"=>"12.0", "stock"=>"100"}, "commit"=>"Update", "id"=>"4"}
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:65:in `pundit_authorize'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:7:in `call'
TRANSACTION (0.1ms)  BEGIN
↳ app/models/product.rb:39:in `block in new_log_update'
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/models/product.rb:39:in `block in new_log_update'
Log Create (0.5ms)  INSERT INTO "logs" ("loggable_type", "loggable_id", "attr", "old_val", "new_val", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["loggable_type", "Product"], ["loggable_id", 4], ["attr", "stock"], ["old_val", "30"], ["new_val", "100"], ["user_id", 1], ["created_at", "2022-07-19 21:27:26.611020"], ["updated_at", "2022-07-19 21:27:26.611020"]]
↳ app/models/product.rb:39:in `block in new_log_update'
Product Update (0.8ms)  UPDATE "products" SET "stock" = $1, "updated_at" = $2 WHERE "products"."id" = $3  [["stock", 100], ["updated_at", "2022-07-19 21:27:26.581952"], ["id", 4]]
↳ app/services/products/product_updater_service.rb:14:in `call'
TRANSACTION (8.4ms)  COMMIT
↳ app/services/products/product_updater_service.rb:14:in `call'

Redirected to localhost:3000/products Completed 302 Found in 63ms (ActiveRecord: 13.9ms | Allocations: 13450)

Started GET “/products” for 127.0.0.1 at 2022-07-19 16:27:26 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 23.2ms | Allocations: 12633)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 18.4ms | Allocations: 8746)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1711)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 22.1ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.4ms | Allocations: 1482)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 18.9ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.1ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1464)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.3ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 46.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.1ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.4ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.0ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 357.3ms | Allocations: 75894)
Rendered layout layouts/application.html.erb (Duration: 379.3ms | Allocations: 83729)

Completed 200 OK in 413ms (Views: 366.7ms | ActiveRecord: 20.8ms | Allocations: 93170)

Started GET “/?term=ta&tag=&commit=Sort” for 127.0.0.1 at 2022-07-19 16:27:35 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"ta", "tag"=>"", "commit"=>"Sort"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 15.1ms | Allocations: 8609)
Product Exists? (0.7ms)  SELECT 1 AS one FROM "products" WHERE (products.name LIKE '%ta%') LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE (products.name LIKE '%ta%')
↳ app/views/products/index.html.erb:8
Tag Load (1.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 12.9ms | Allocations: 2355)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.3ms | Allocations: 1493)
Rendered products/index.html.erb within layouts/application (Duration: 44.7ms | Allocations: 13901)
Rendered layout layouts/application.html.erb (Duration: 67.0ms | Allocations: 21612)

Completed 200 OK in 86ms (Views: 64.5ms | ActiveRecord: 5.6ms | Allocations: 23152)

Started GET “/” for 127.0.0.1 at 2022-07-19 16:40:40 -0500 Processing by ProductsController#index as HTML

Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.1ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.9ms | Allocations: 9202)
Product Exists? (0.7ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 12.8ms | Allocations: 3100)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1464)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1482)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1493)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1462)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.5ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1493)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 223.5ms | Allocations: 66926)
Rendered layout layouts/application.html.erb (Duration: 241.6ms | Allocations: 75348)

Completed 200 OK in 271ms (Views: 232.9ms | ActiveRecord: 20.3ms | Allocations: 80389)

Started GET “/products/new” for 127.0.0.1 at 2022-07-19 16:40:43 -0500 Processing by ProductsController#new as HTML

User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:65:in `pundit_authorize'
Rendering layout layouts/application.html.erb
Rendering products/new.html.erb within layouts/application
Rendered products/_form.html.erb (Duration: 5.7ms | Allocations: 1623)
Rendered products/new.html.erb within layouts/application (Duration: 9.2ms | Allocations: 1886)
Rendered layout layouts/application.html.erb (Duration: 30.0ms | Allocations: 9560)

Completed 200 OK in 46ms (Views: 34.5ms | ActiveRecord: 0.4ms | Allocations: 10951)

Started POST “/products” for 127.0.0.1 at 2022-07-19 16:40:52 -0500 Processing by ProductsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product"=>{"name"=>"Cookie", "description"=>"", "price"=>"10", "stock"=>"100"}, "commit"=>"Add Product"}
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/controllers/products_controller.rb:65:in `pundit_authorize'

Redirected to localhost:3000/products Completed 302 Found in 29ms (ActiveRecord: 0.3ms | Allocations: 7410)

Started GET “/products” for 127.0.0.1 at 2022-07-19 16:40:52 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 8.3ms | Allocations: 8632)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.8ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2422)
Tag Load (0.7ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1482)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1462)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1462)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1494)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1461)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1493)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1464)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1494)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1464)
Rendered products/index.html.erb within layouts/application (Duration: 244.1ms | Allocations: 65195)
Rendered layout layouts/application.html.erb (Duration: 260.3ms | Allocations: 73019)

Completed 200 OK in 266ms (Views: 250.1ms | ActiveRecord: 11.4ms | Allocations: 74673)

Started GET “/?term=c&tag=&commit=Sort” for 127.0.0.1 at 2022-07-19 16:41:05 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"c", "tag"=>"", "commit"=>"Sort"}
Order Load (1.5ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.4ms | Allocations: 8568)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE (products.name LIKE '%c%') LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE (products.name LIKE '%c%')
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.5ms | Allocations: 2333)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1494)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 1494)
Rendered products/index.html.erb within layouts/application (Duration: 54.0ms | Allocations: 16963)
Rendered layout layouts/application.html.erb (Duration: 71.8ms | Allocations: 24628)

Completed 200 OK in 80ms (Views: 70.8ms | ActiveRecord: 4.0ms | Allocations: 26012)

Started GET “/?term=cookie&tag=&commit=Sort” for 127.0.0.1 at 2022-07-19 16:41:08 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"cookie", "tag"=>"", "commit"=>"Sort"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 11.8ms | Allocations: 8567)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE (products.name LIKE '%cookie%') LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/index.html.erb:13
Rendered products/index.html.erb within layouts/application (Duration: 24.0ms | Allocations: 10075)
Rendered layout layouts/application.html.erb (Duration: 42.6ms | Allocations: 17740)

Completed 200 OK in 54ms (Views: 45.0ms | ActiveRecord: 1.5ms | Allocations: 19100)

Started GET “/?term=chip&tag=&commit=Sort” for 127.0.0.1 at 2022-07-19 16:41:11 -0500 Processing by ProductsController#index as HTML

Parameters: {"term"=>"chip", "tag"=>"", "commit"=>"Sort"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.7ms | Allocations: 8567)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" WHERE (products.name LIKE '%chip%') LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products" WHERE (products.name LIKE '%chip%')
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 11.6ms | Allocations: 2333)
Rendered products/index.html.erb within layouts/application (Duration: 34.8ms | Allocations: 12253)
Rendered layout layouts/application.html.erb (Duration: 53.7ms | Allocations: 19929)

Completed 200 OK in 64ms (Views: 54.5ms | ActiveRecord: 2.1ms | Allocations: 21306)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-19 17:26:16 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 56ms (ActiveRecord: 8.3ms | Allocations: 9241)

Started GET “/” for 127.0.0.1 at 2022-07-19 17:26:16 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 17.6ms | Allocations: 12430)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 22.7ms | Allocations: 8451)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2023)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 11.3ms | Allocations: 1807)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1852)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1819)
Tag Load (1.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.4ms | Allocations: 1788)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.4ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 20.5ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1786)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 306.2ms | Allocations: 88051)
Rendered layout layouts/application.html.erb (Duration: 353.6ms | Allocations: 110806)

Completed 200 OK in 397ms (Views: 344.9ms | ActiveRecord: 12.7ms | Allocations: 123909)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-19 17:26:17 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 4.1ms | Allocations: 727)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 19.8ms | Allocations: 3507)
Rendered layout layouts/application.html.erb (Duration: 44.6ms | Allocations: 11426)

Completed 200 OK in 55ms (Views: 53.0ms | ActiveRecord: 0.0ms | Allocations: 13110)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-19 17:26:23 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"test1@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "test1@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."user_id" = $1 AND "orders"."status" = $2 LIMIT $3  [["user_id", 3], ["status", 0], ["LIMIT", 1]]
↳ app/controllers/sessions_controller.rb:12:in `after_login'
TRANSACTION (0.1ms)  BEGIN
↳ app/models/order.rb:31:in `set_total'
OrderLine Load (0.4ms)  SELECT "order_lines".* FROM "order_lines" WHERE "order_lines"."order_id" = $1  [["order_id", 8]]
↳ app/models/order.rb:31:in `set_total'
TRANSACTION (0.2ms)  COMMIT
↳ app/controllers/sessions_controller.rb:15:in `after_login'

Completed 302 Found in 255ms (ActiveRecord: 1.5ms | Allocations: 8704)

Started GET “/” for 127.0.0.1 at 2022-07-19 17:26:23 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.6ms | Allocations: 8556)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.6ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.8ms | Allocations: 3708)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 12], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 2638)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 13], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.3ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 14], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 18], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 19], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.4ms | Allocations: 2635)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 20], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 42], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 43], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.7ms | Allocations: 2677)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 44], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.9ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 45], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 8.0ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.2ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 10], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 16.4ms | Allocations: 5176)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 46], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 7.8ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 47], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 32.5ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 48], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 34.8ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 49], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 36.8ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 50], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 24.4ms | Allocations: 2605)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 2], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 27.4ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 8], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 77.8ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.8ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 4], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.7ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 32], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.7ms | Allocations: 2603)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 33], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 34], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 35], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.4ms | Allocations: 2603)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 37], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 9.9ms | Allocations: 2605)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 38], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.0ms | Allocations: 2603)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (1.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 36], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.6ms | Allocations: 2603)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 6], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 2635)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.7ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.3ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 9], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 15.8ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 39], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 10.1ms | Allocations: 2602)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Like Load (0.4ms)  SELECT "likes".* FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 7], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:23:in `find_like'
Rendered products/_product_cart.html.erb (Duration: 14.2ms | Allocations: 3429)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 40], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 2605)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.3ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 17], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 13.0ms | Allocations: 2635)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.6ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 16], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2635)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Like Exists? (0.5ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 41], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 12.5ms | Allocations: 2605)
Rendered products/index.html.erb within layouts/application (Duration: 590.2ms | Allocations: 109294)
Rendered layout layouts/application.html.erb (Duration: 609.6ms | Allocations: 117163)

Completed 200 OK in 625ms (Views: 578.7ms | ActiveRecord: 32.5ms | Allocations: 119497)

Started GET “/products/11” for 127.0.0.1 at 2022-07-19 17:26:25 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"11"}
Order Load (0.4ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.5ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 11], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:11:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 18.8ms | Allocations: 3653)
Rendered comments/_form.html.erb (Duration: 29.4ms | Allocations: 5155)
Comment Load (0.8ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 11], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
Rendered comments/_comments.html.erb (Duration: 8.6ms | Allocations: 2454)
Rendered products/show.html.erb within layouts/application (Duration: 65.2ms | Allocations: 12980)
Rendered layout layouts/application.html.erb (Duration: 83.9ms | Allocations: 20804)

Completed 200 OK in 107ms (Views: 79.0ms | ActiveRecord: 10.5ms | Allocations: 23932)

Started POST “/products/11/comments” for 127.0.0.1 at 2022-07-19 17:26:28 -0500 Processing by CommentsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "comment"=>{"body"=>"new", "rate"=>"2"}, "commit"=>"Add comment", "product_id"=>"11"}
User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:37:in `pundit_authorize'
Product Load (1.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 11], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:11:in `call'
TRANSACTION (1.1ms)  BEGIN
↳ app/services/comments/comment_creator_service.rb:19:in `call'
Comment Create (0.9ms)  INSERT INTO "comments" ("body", "rate", "user_id", "commentable_type", "commentable_id", "created_at", "updated_at", "approved") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["body", "new"], ["rate", 2], ["user_id", 3], ["commentable_type", "Product"], ["commentable_id", 11], ["created_at", "2022-07-19 22:26:28.896400"], ["updated_at", "2022-07-19 22:26:28.896400"], ["approved", false]]
↳ app/services/comments/comment_creator_service.rb:19:in `call'
TRANSACTION (8.2ms)  COMMIT
↳ app/services/comments/comment_creator_service.rb:19:in `call'

Redirected to localhost:3000/products/11 Completed 302 Found in 41ms (ActiveRecord: 12.2ms | Allocations: 6926)

Started GET “/products/11” for 127.0.0.1 at 2022-07-19 17:26:28 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"11"}
Order Load (0.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
CACHE Order Load (0.0ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 11], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:11:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Like Exists? (0.4ms)  SELECT 1 AS one FROM "likes" WHERE "likes"."product_id" = $1 AND "likes"."user_id" = $2 LIMIT $3  [["product_id", 11], ["user_id", 3], ["LIMIT", 1]]
↳ app/models/product.rb:18:in `liked_by?'
Rendered products/_product_cart.html.erb (Duration: 11.4ms | Allocations: 3620)
Rendered comments/_form.html.erb (Duration: 2.6ms | Allocations: 773)
Comment Load (0.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" = $4)  [["commentable_id", 11], ["commentable_type", "Product"], ["approved", true], ["user_id", 3]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 9.6ms | Allocations: 2861)
Rendered products/show.html.erb within layouts/application (Duration: 26.2ms | Allocations: 7533)
Rendered layout layouts/application.html.erb (Duration: 40.8ms | Allocations: 15335)

Completed 200 OK in 50ms (Views: 39.8ms | ActiveRecord: 2.9ms | Allocations: 17586)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-19 17:26:31 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 11ms (ActiveRecord: 0.4ms | Allocations: 1852)

Started GET “/” for 127.0.0.1 at 2022-07-19 17:26:31 -0500 Processing by ProductsController#index as HTML

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 14.2ms | Allocations: 8589)
Product Exists? (0.3ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (3.9ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1914)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1807)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1789)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1789)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1789)
Tag Load (11.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.2ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1789)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1818)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1786)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 250.1ms | Allocations: 75616)
Rendered layout layouts/application.html.erb (Duration: 266.9ms | Allocations: 83335)

Completed 200 OK in 273ms (Views: 243.2ms | ActiveRecord: 25.6ms | Allocations: 84692)

Started GET “/users/sign_in” for 127.0.0.1 at 2022-07-19 17:26:32 -0500 Processing by SessionsController#new as HTML

Rendering layout layouts/application.html.erb
Rendering devise/sessions/new.html.erb within layouts/application
Rendered devise/shared/_links.html.erb (Duration: 0.4ms | Allocations: 138)
Rendered devise/sessions/new.html.erb within layouts/application (Duration: 9.1ms | Allocations: 1297)
Rendered layout layouts/application.html.erb (Duration: 28.7ms | Allocations: 9021)

Completed 200 OK in 34ms (Views: 30.7ms | ActiveRecord: 0.0ms | Allocations: 9683)

Started POST “/users/sign_in” for 127.0.0.1 at 2022-07-19 17:26:38 -0500 Processing by SessionsController#create as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"support@mail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "support@mail.com"], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 283ms (ActiveRecord: 0.5ms | Allocations: 2424)

Started GET “/” for 127.0.0.1 at 2022-07-19 17:26:38 -0500 Processing by ProductsController#index as TURBO_STREAM

Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 13.9ms | Allocations: 8566)
Product Exists? (0.5ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.4ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.8ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 12.2ms | Allocations: 2343)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1497)
Tag Load (0.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1497)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1497)
Tag Load (0.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1497)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.3ms | Allocations: 1467)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1485)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1467)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1467)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1496)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1467)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1467)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1467)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1467)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.8ms | Allocations: 1467)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1465)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1465)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.6ms | Allocations: 1465)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1465)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1467)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1465)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1465)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1497)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1496)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1464)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1496)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1467)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.0ms | Allocations: 1497)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1497)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1467)
Rendered products/index.html.erb within layouts/application (Duration: 252.9ms | Allocations: 65042)
Rendered layout layouts/application.html.erb (Duration: 273.2ms | Allocations: 72711)

Completed 200 OK in 285ms (Views: 260.9ms | ActiveRecord: 14.4ms | Allocations: 74074)

Started GET “/products/11” for 127.0.0.1 at 2022-07-19 17:26:41 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"11"}
Order Load (0.3ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.8ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 11], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:11:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 11.2ms | Allocations: 2301)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 11], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 11.4ms | Allocations: 1939)
Rendered products/show.html.erb within layouts/application (Duration: 23.9ms | Allocations: 4443)
Rendered layout layouts/application.html.erb (Duration: 43.4ms | Allocations: 12108)

Completed 200 OK in 60ms (Views: 43.3ms | ActiveRecord: 3.5ms | Allocations: 13927)

Started PATCH “/products/11/comments/7” for 127.0.0.1 at 2022-07-19 17:26:42 -0500 Processing by CommentsController#update as TURBO_STREAM

Parameters: {"authenticity_token"=>"[FILTERED]", "product_id"=>"11", "id"=>"7"}
User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/controllers/comments_controller.rb:37:in `pundit_authorize'
Product Load (0.3ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 11], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:11:in `call'
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND "comments"."id" = $3 LIMIT $4  [["commentable_id", 11], ["commentable_type", "Product"], ["id", 7], ["LIMIT", 1]]
↳ app/services/comments/comment_finder_service.rb:12:in `call'
TRANSACTION (1.7ms)  BEGIN
↳ app/services/comments/comment_updater_service.rb:13:in `call'
User Load (1.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/services/comments/comment_updater_service.rb:13:in `call'
Comment Update (1.2ms)  UPDATE "comments" SET "updated_at" = $1, "approved" = $2 WHERE "comments"."id" = $3  [["updated_at", "2022-07-19 22:26:42.402291"], ["approved", true], ["id", 7]]
↳ app/services/comments/comment_updater_service.rb:13:in `call'
TRANSACTION (20.5ms)  COMMIT
↳ app/services/comments/comment_updater_service.rb:13:in `call'

Redirected to localhost:3000/products/11 Completed 302 Found in 47ms (ActiveRecord: 25.6ms | Allocations: 6124)

Started GET “/products/11” for 127.0.0.1 at 2022-07-19 17:26:42 -0500 Processing by ProductsController#show as TURBO_STREAM

Parameters: {"id"=>"11"}
Order Load (1.2ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (0.2ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 11], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:11:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]
↳ app/views/products/_product_cart.html.erb:14
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 2402)
Comment Load (0.4ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2  [["commentable_id", 11], ["commentable_type", "Product"]]
↳ app/views/comments/_comments.html.erb:2
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 7.1ms | Allocations: 1669)
Rendered products/show.html.erb within layouts/application (Duration: 16.3ms | Allocations: 4286)
Rendered layout layouts/application.html.erb (Duration: 33.6ms | Allocations: 12060)

Completed 200 OK in 46ms (Views: 33.7ms | ActiveRecord: 2.6ms | Allocations: 14047)

Started GET “/users/sign_out” for 127.0.0.1 at 2022-07-19 17:26:46 -0500 Processing by Devise::SessionsController#destroy as HTML

User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2], ["LIMIT", 1]]

Redirected to localhost:3000/ Completed 302 Found in 12ms (ActiveRecord: 0.2ms | Allocations: 1826)

Started GET “/” for 127.0.0.1 at 2022-07-19 17:26:46 -0500 Processing by ProductsController#index as HTML

Order Load (0.6ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (0.6ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 10.6ms | Allocations: 8604)
Product Exists? (0.4ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (1.1ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1931)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1807)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.7ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 4.8ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1789)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.2ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.0ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.5ms | Allocations: 1819)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.3ms | Allocations: 1818)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.7ms | Allocations: 1786)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.4ms | Allocations: 1818)
Tag Load (1.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.5ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.3ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.1ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 209.9ms | Allocations: 75657)
Rendered layout layouts/application.html.erb (Duration: 223.4ms | Allocations: 83318)

Completed 200 OK in 233ms (Views: 210.2ms | ActiveRecord: 14.9ms | Allocations: 84648)

Started GET “/products/11” for 127.0.0.1 at 2022-07-19 17:26:47 -0500 Processing by ProductsController#show as HTML

Parameters: {"id"=>"11"}
Order Load (0.8ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Product Load (1.6ms)  SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2  [["id", 11], ["LIMIT", 1]]
↳ app/services/products/product_finder_service.rb:11:in `call'
Rendering layout layouts/application.html.erb
Rendering products/show.html.erb within layouts/application
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 30.4ms | Allocations: 1863)
Comment Load (0.5ms)  SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $1 AND "comments"."commentable_type" = $2 AND ("comments"."approved" = $3 OR "comments"."user_id" IS NULL)  [["commentable_id", 11], ["commentable_type", "Product"], ["approved", true]]
↳ app/views/comments/_comments.html.erb:2
User Load (1.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
↳ app/views/comments/_comments.html.erb:4
Rendered comments/_comments.html.erb (Duration: 16.2ms | Allocations: 1782)
Rendered products/show.html.erb within layouts/application (Duration: 48.4ms | Allocations: 3865)
Rendered layout layouts/application.html.erb (Duration: 66.1ms | Allocations: 11525)

Completed 200 OK in 81ms (Views: 65.6ms | ActiveRecord: 4.8ms | Allocations: 13329)

Started GET “/” for 127.0.0.1 at 2022-07-19 17:26:49 -0500 Processing by ProductsController#index as HTML

Order Load (1.7ms)  SELECT "orders".* FROM "orders" WHERE "orders"."id" IS NULL LIMIT $1  [["LIMIT", 1]]
↳ app/helpers/application_helper.rb:8:in `current_order'
Rendering layout layouts/application.html.erb
Rendering products/index.html.erb within layouts/application
Tag Load (1.2ms)  SELECT "tags".* FROM "tags"
↳ app/views/products/_filter_bar.html.erb:9
Rendered products/_filter_bar.html.erb (Duration: 9.6ms | Allocations: 8593)
Product Exists? (1.8ms)  SELECT 1 AS one FROM "products" LIMIT $1  [["LIMIT", 1]]
↳ app/views/products/index.html.erb:5
Product Load (0.5ms)  SELECT "products".* FROM "products"
↳ app/views/products/index.html.erb:8
Tag Load (4.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 11]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.2ms | Allocations: 1895)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 12]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 13]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 14]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.3ms | Allocations: 1819)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 18]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 12.1ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 19]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 20]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.2ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 42]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.0ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 43]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.9ms | Allocations: 1807)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 44]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1789)
Tag Load (1.8ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 45]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.1ms | Allocations: 1789)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 10]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 16.6ms | Allocations: 1818)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 46]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 13.9ms | Allocations: 1789)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 47]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.0ms | Allocations: 1789)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 48]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 14.7ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 49]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.7ms | Allocations: 1789)
Tag Load (0.5ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 50]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.9ms | Allocations: 1789)
Tag Load (2.0ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 2]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 17.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 8]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.9ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 4]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 15.7ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 32]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.5ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 33]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.2ms | Allocations: 1787)
Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 34]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1787)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 35]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.2ms | Allocations: 1787)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 37]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.1ms | Allocations: 1789)
Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 38]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.8ms | Allocations: 1787)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 36]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.3ms | Allocations: 1787)
Tag Load (0.6ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 6]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 8.7ms | Allocations: 1819)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 9]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1818)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 39]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.9ms | Allocations: 1786)
Tag Load (1.9ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 7]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 7.6ms | Allocations: 1818)
Tag Load (0.4ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 40]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 9.2ms | Allocations: 1789)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 17]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 10.5ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 16]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 6.6ms | Allocations: 1819)
Tag Load (0.3ms)  SELECT "tags".* FROM "tags" INNER JOIN "products_tags" ON "tags"."id" = "products_tags"."tag_id" WHERE "products_tags"."product_id" = $1  [["product_id", 41]]
↳ app/views/products/_product_cart.html.erb:8
Rendered products/_product_cart.html.erb (Duration: 5.2ms | Allocations: 1789)
Rendered products/index.html.erb within layouts/application (Duration: 374.1ms | Allocations: 75600)
Rendered layout layouts/application.html.erb (Duration: 405.8ms | Allocations: 83260)

Completed 200 OK in 416ms (Views: 380.7ms | ActiveRecord: 27.5ms | Allocations: 84603)